快速切换npm源,github
NPM registry manager, fast switch between different registries: npm, cnpm, nj, taobao
Install
$ npm install -g nrm
Usage
$ 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/
skimdb -- https://skimdb.npmjs.com/registry
$ nrm use cnpm //switch registry to cnpm
// Registry has been set to: http://r.cnpmjs.org/
切换:
$ nrm use taobao
Registry has been set to: http://registry.npm.taobao.org/
增加源:
$ nrm add <registry> <url> [home]
删除源:
$ nrm del <registry>
测试速度:
$ nrm test
忘记命令不用怕,记住-h,救急 $ nrm -h