安装
npm install -g nrm
使用
列出可选的源
1 | nrm ls |
nrm use taobao
Registry has been set to: http://registry.npm.taobao.org/
1 |
|
nrm test npm
npm —- 1328ms
1 | 测试所有源的响应时间: |
nrm test
npm —- 891ms
cnpm — 1213ms
- taobao - 460ms
eu —– 3859ms
au —– 1073ms
sl —– 4150ms
nj —– 8008ms