超级超级简单,下载安装node,此时回自动安装npm,然后在npm命令行输入如下指令即可:
npm install -g cnpm --registry=https://registry.npm.taobao.org
这时切换到了淘宝镜像源了。
查看目前npm处于哪个源上也很简单,
下载 npm install -g nrm;
查看:nrm ls
![](https://img.haomeiwen.com/i6263718/886fce4f08e72a86.png)
http://blog.csdn.net/kingboyworld/article/details/77709787
超级超级简单,下载安装node,此时回自动安装npm,然后在npm命令行输入如下指令即可:
npm install -g cnpm --registry=https://registry.npm.taobao.org
这时切换到了淘宝镜像源了。
查看目前npm处于哪个源上也很简单,
下载 npm install -g nrm;
查看:nrm ls
http://blog.csdn.net/kingboyworld/article/details/77709787
本文标题:npm 切换镜像源
本文链接:https://www.haomeiwen.com/subject/gwoppxtx.html
网友评论