npm 镜像的问题

Posted liangcheng11

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm 镜像的问题相关的知识,希望对你有一定的参考价值。

1> cnpm(不推荐)

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

2> 推荐第二种

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

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