Vue 解决npm ERR! Cannot read properties of null (reading ‘pickAlgorithm‘)
方案1
重新安装node解决,这并没有解决我的问题,舍弃。
方案2
1、删了node models
重新下。
或者直接下载CNPM(淘宝镜像)进行安装CNPM安装办法:
npm install -g cnpm -registry=https://registry.npm.taobao.org
2、查看cnpm是否真安装成功:
cnpm -v
这种方式也没有解决我的问题。
于是,使用如下第3种方案解决了我的问题。
3、解决问题
在终端输入指令npm cache clear --force
,如下所示:
PS D:\Software\RedisDesktopManager\AnotherRedisDesktopManager> npm cache clear --force
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN using --force Recommended protections disabled.
此时,问题解决。
还没有评论,来说两句吧...