作为程序员一定要保持良好的睡眠,才能好编程

nrm安装-镜像源查看

发布时间:2020-05-18



先全局安装nrm

npm install -g nrm --registry=https://registry.npm.taobao.org

npm set registry https://registry.npmjs.org/


查看可用的npm镜像

nrm ls


使用淘宝的镜像

nrm use taobao


然后愉快的使用npm

0人点赞

分享




npm config set registry https://registry.npm.taobao.org/


C:\Users\DELL>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/