nrm切换华为镜像

 查看nrm镜像列表

nrm ls
  npm ---------- https://registry.npmjs.org/
  yarn --------- https://registry.yarnpkg.com/
  tencent ------ https://mirrors.cloud.tencent.com/npm/
  cnpm --------- https://r.cnpmjs.org/
  taobao ------- https://registry.npmmirror.com/
  npmMirror ---- https://skimdb.npmjs.com/registry/
  newnpm ------- http://registry.npmjs.org/
* huaweinpm ---- https://mirrors.huaweicloud.com/repository/npm/

刚安装可能不显示华为的镜像,需要手动添加:

 nrm add huaweinpm  https://mirrors.huaweicloud.com/repository/npm

然后选择华为镜像:

nrm use huaweinpm

你可能感兴趣的:(npm)