npm的镜像替换成淘宝

Posted </script>

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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/



以上是关于npm的镜像替换成淘宝的主要内容,如果未能解决你的问题,请参考以下文章