1. 下载 nrm:npm install -g nrm
2.查看可切换的镜像源: nrm ls (*表示正在使用的镜像源)
* npm -------- https://registry.npmjs.org/
yarn ------- https://registry.yarnpkg.com/
cnpm ------- http://r.cnpmjs.org/
taobao ----- https://registry.npm.taobao.org/
nj --------- https://registry.nodejitsu.com/
npmMirror -- https://skimdb.npmjs.com/registry/
edunpm ----- http://registry.enpmjs.org/
3. 切换淘宝镜像源:nrm use taobao