npm安装报错解决方案

1.设置镜像代理为

http://registry.cnpmjs.org

原来我用的淘宝镜像(https://registry.npm.taobao.org)老是报错


2.清空npm缓存

npm cache clean --force

3.将项目下的node_modules删除


4.重新install

npm i

猜你喜欢

转载自blog.csdn.net/github_38313789/article/details/80632205