# the original source
https://registry.npmjs.org/
npm install -g nrm
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/
nrm use taobao
npm config set registry https://registry.npm.taobao.org
npm config get registry
输出结果:
https://registry.npm.taobao.org/
npm info underscore
npm --registry https://registry.npm.taobao.org install [name]
~/.npmrc
registry = https://registry.npm.taobao.org
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install [name]