nrm npm仓库管理

查看 npm 当前源

npm config get registry

设置淘宝镜像源

npm config set registry https://registry.npmmirror.com

安装 nrm

  • 全局安装
npm install -g 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/

切换仓库方法

nrm use taobao

你可能感兴趣的:(笔记,前端,npm,前端,node.js)