managing NPM warehouses using NRM
With NPM pack, often run into too slow or NPM official website was wall situation, sometimes make a change to "~/.NPMRC" file, but often change to go also very troublesome, so found can use NRM to manage NPM warehouse. installation
sudo npm install-g NRM
Query Warehouse
Use "NRM ls" to view all warehouses
$ NRM ls
* npm----https://registry.npmjs.org/
cnpm---http://r.cnpmjs.org/
taobao-https:// registry.npm.taobao.org/
NJ-----https://registry.nodejitsu.com/
rednpm-http:// registry.mirror.cqupt.edu.cn/
npmmirror https://skimdb.npmjs.com/registry/
edunpm-http:// registry.enpmjs.org/
The warehouse with "*" in which the representation is currently in use. Add Delete Warehouse
Use Add or Del to add or remove warehouses. Like what:
$ NRM Add Myrepos
... $ NRM del Myrepos
switching Warehouses
Uses use to select the currently used warehouse. Like what:
$ NRM use taobao ... $ NRM ls npm----HTTPS://REGISTRY.NPMJS.ORG/CNPM---HTTP://R.CNPMJS . org/* TAOBAO-HTTPS://REGISTRY.NPM.TAOBAO.ORG/NJ-----HTTPS://REGISTRY.NODEJITSU.COM/REDNPM-HTTP://REGISTRY.MI Rror.cqupt.edu.cn/npmmirror https://skimdb.npmjs.com/registry/edunpm-http://registry.enpmjs.org