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