NPM nrm

本文最后更新于:2024年3月18日 凌晨

NPM nrm

  • nrm 是一个 NPM 源管理器,允许你快速地在如下 NPM 源间切换:
  • 列表项目。
    • npm
    • cnpm
    • strongloop
    • enropean
    • australia
    • nodejitsu
    • taobao

安装

1
$ npm install -g nrm

列出可用的源

1
2
3
4
5
6
7
8
9
nrm ls
npm ---- https://registry.npmjs.org/
cnpm --- http://r.cnpmjs.org/
taobao - http://registry.npm.taobao.org/
eu ----- http://registry.npmjs.eu/
au ----- http://registry.npmjs.org.au/
sl ----- http://npm.strongloop.com/
nj ----- https://registry.nodejitsu.com/
pt ----- http://registry.npmjs.pt/

切换源

1
2
nrm use taobao
Registry has been set to: http://registry.npm.taobao.org/

增加源

1
nrm add <registry> <url> [home]

删除源

1
nrm del <registry>

测试速度

1
nrm test

本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!