npm的镜像替换成淘宝的镜像

1.得到原本的镜像地址

npm get registry 

> https://registry.npmjs.org/

设成淘宝的镜像

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

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

2.换成原来的镜像

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

猜你喜欢

转载自blog.csdn.net/weixin_39466493/article/details/86676477