npm镜像

72 阅读1分钟
查看镜像
npm get registry
切换镜像
npm config set registry  xxx镜像地址xxx

nrm 切换镜像源

nrm 管理不同镜像

安装nrm
npm install -g nrm

nrm查看镜像

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/
npmMirror – https://skimdb.npmjs.com/registry/
edunpm ----- http://registry.enpmjs.org/

nrm切换镜像

nrm use taobao