NPM 源的管理器nrm
作为一个 NPM 源管理器,nrm允许快速地在如下 NPM 源间切换:
列表项目
- npm
- cnpm
- strongloop
- enropean
- australia
- nodejitsu
- taobao
Install
sudo npm install -g nrm
如何使用?
列出可用的源:
➜ ~ nrm ls
- npm ---- https://registry.npmjs.org/
- cnpm --- http://r.cnpmjs.org/
- taobao - http://registry.npm.taobao.org/
- eu ----- http://registry.npmjs.eu/
- au ----- http://registry.npmjs.org.au/
- sl ----- http://npm.strongloop.com/
- nj ----- https://registry.nodejitsu.com/
- pt ----- http://registry.npmjs.pt/
切换:
➜ ~ nrm use taobao Registry has been set to: http://registry.npm.taobao.org/
增加源:
nrm add <registry> <url> [home]
删除源:
nrm del <registry>
测试速度:
nrm test
作者:圣手小青龙
链接:https://www.jianshu.com/p/171ec231ced4
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
好记性不如烂笔头,每天记录一点点