nrm —— 快速切换 NPM 源
npm install -g nrm
1 | * npm ---- https://registry.npmjs.org/ |
切换到 taobao
nrm use taobao
增加源
nrm add <registry> <url> [home]
删除源
nrm del <registry>
测试所有源的响应时间
nrm test
yarn 查看下载源
yarn config get registry
更换为淘宝源
yarn config set registry https://registry.npm.taobao.org