介紹
nrm(npm registry manager )是npm的鏡像源管理工具,有時候國外資源太慢,使用這個就可以方便地在 npm 各個源之間切換
安裝
- 全局安裝nrm
npm install -g nrm
使用
列出源配置
nrm ls
- 帶*的表示當前正在使用的源
查看當前源
nrm current
切換源
nrm use tencent
增加源
nrm add taobao https://registry.npmmirror.com/
測試源速度
nrm test tencent