官方原話:nrm can help you easy and fast switch between different npm registries, now include: npm, cnpm, taobao, nj(nodejitsu)滩届。
自助翻譯:nrm能幫你簡(jiǎn)單快速的切換不同npm鏡像源十性,現(xiàn)在包括以下源:npm陕靠,cnpm补履,taobao,nj募疮。
下載:
npm install -g nrm
查看現(xiàn)在使用的鏡像源(前面打星號(hào)的就是當(dāng)前使用的鏡像源):
$ 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/
skimdb -- https://skimdb.npmjs.com/registry
更換源:
$ nrm use cnpm
圖片.png