其他分享
首页 > 其他分享> > npm install时网络报错的问题

npm install时网络报错的问题

作者:互联网

 

如果现在是taobao的镜像

npm config set registry http://registry.cnpmjs.org/

如果不是淘宝的镜像

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

 

先在CMD中运行这个 npm config set registry http://registry.cnpmjs.org/

然后在CMD中运行这个 npm install -g cnpm --registry=https://registry.npm.taobao.org

 

 

标签:npm,taobao,set,报错,registry,install,org,config
来源: https://www.cnblogs.com/dzs894330350/p/16057520.html