npm install 报错404

1,检查有没有设置代理

npm config get proxy
npm config get https-proxy

如果有返回结果,执行清理命令

npm config set https-proxy null
npm config set proxy null

2,重新设置淘宝代理

npm config set registry https://registry.npmjs.org/

这样就设置成功了,再重新npm install 就可以啦

猜你喜欢

转载自blog.csdn.net/weixin_44735965/article/details/135458440