一、安装工具nrm
npm i -g nrm
二、查看源
npx nrm ls
* npm -------- https://registry.npmjs.org/
yarn ------- https://registry.yarnpkg.com/
cnpm ------- http://r.cnpmjs.org/
nj --------- https://registry.nodejitsu.com/
npmMirror -- https://skimdb.npmjs.com/registry/
edunpm ----- http://registry.enpmjs.org/
查看当前源
npx nrm current
或者
npm config get registry
三、添加源
npx nrm add taobao https://registry.npm.taobao.org/
四、切换源
npx nrm use taobao