npm的镜像替换成淘宝

1.得到原本的镜像地址

npm get registry 

> https://registry.npmjs.org/

设成淘宝的

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

 

 

2.换成原来的

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

posted @ 2018-06-08 17:09  顾遥  阅读(72)  评论(0)    收藏  举报