1.设置镜像代理为
http://registry.cnpmjs.org
原来我用的淘宝镜像(https://registry.npm.taobao.org)老是报错

2.清空npm缓存
npm cache clean --force
3.将项目下的node_modules删除

4.重新install
npm i
http://registry.cnpmjs.org
原来我用的淘宝镜像(https://registry.npm.taobao.org)老是报错

npm cache clean --force

npm i
16万+
8869
3397
1005
4464
388

被折叠的 条评论
为什么被折叠?