Node 实用工具之 NRM,轻松切换 npm 数据源。


安装

1
npm install -g nrm

列出数据源

1
2
3
4
5
6
7
8
nrm ls

结果:
npm -----  https://registry.npmjs.org/
cnpm ----  http://r.cnpmjs.org/
taobao --  https://registry.npm.taobao.org/
nj ------  https://registry.nodejitsu.com/
skimdb -- https://skimdb.npmjs.com/registry

切换源

1
nrm use cnpm  //切换到 cnpm