github地址
https://github.com/Pana/nrm
安装
npm install -g nrm
$ nrm ls
* npm ---- https://registry.npmjs.org/
cnpm --- http://r.cnpmjs.org/
eu ----- http://registry.npmjs.eu/
au ----- http://registry.npmjs.org.au/
sl ----- http://npm.strongloop.com/
nj ----- https://registry.nodejitsu.com/
设置注册地址
$ nrm use cnpm //switch registry to cnpm
Registry has been set to: http://r.cnpmjs.org/
nrm help // show help
nrm list // show all registries
nrm use cnpm // switch to cnpm
nrm home // go to a registry home page
nrm add添加源
nrm del删除源
nrm test测试源的响应时间,可以作为使用哪个源的参考
npm 查看和设置注册地址
查看:
npm config get registry
设置
npm config set registry http://registry.npmjs.org