npm切换淘宝镜像的两种方法:
第一种(链接切换):
1.全局切换镜像:
npm config set registry http://registry.npm.taobao.org/
npm get registry
3.全局切换回官方源
npm config set registry http://www.npmjs.org
第二种(nrm切换):
1.利用npm 下载nrm:
npm install -g nrm
2.查看可切换的镜像源:
nrm ls
3.切换镜像源(如淘宝):
nrm use taobao
上一篇:Node.js下载安装及配置镜像源
下一篇:Node.js版本对比