nrm
- npm的镜像源管理工具,有时候国外资源太慢,使用这个就可以快速地在 npm 源间切换
1.安装
cnpm install -g nrm
2.查看地址
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/
npmMirror -- https://skimdb.npmjs.com/registry/
edunpm ----- http://registry.enpmjs.org/
*
3.切换
nrm use taobao
4.增加
nrm add
5.删除
nrm del
6.测试速度
nrm test npm
//npm ---- 2125ms