使用 nrm 管理 npm 源

安装

➜  ~ npm i nrm -g

使用

# 查看 nrm 内置的几个 npm 源
➜ ~ nrm ls
npm ---- https://registry.npmjs.org/
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 cnpm
Registry has been set to: http://r.cnpmjs.org/