nrm|npm快速切源

npm ERR! audit Your configured registry (https://registry.npmmirror.com/) does not support audit requests. 直接切源就 ok 了

全局安装


$npm i -g nrm

查看所有源

$ nrm ls

* npm -------- https://registry.npmjs.org/
  yarn ------- https://registry.yarnpkg.com/
  cnpm ------- http://r.cnpmjs.org/
  taobao ----- https://www.npmmirror.com/
  nj --------- https://registry.nodejitsu.com/
  npmMirror -- https://skimdb.npmjs.com/registry/
  edunpm ----- http://registry.enpmjs.org/

其中 * 号表示当前使用的源。

也可使用 nrm current 命令查看当前源。

切换源


$nrm use 

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