npm源切换

时间:2020-06-16 16:58:55   收藏:0   阅读:48

1.查看原本的镜像地址

npm get registry 

> https://registry.npmjs.org/

 

设成淘宝的

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

 

将npm替换为cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

 

2.换成原来的

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

原文:https://www.cnblogs.com/houjl/p/13141410.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!