目录
npm
查看当前源
npm config get registry
还原仓库地址
npm config set registry https://registry.npmjs.org/
切换为淘宝源
npm config set registry https://registry.npm.taobao.org/
yarn
查看当前源
yarn config get registry
还原仓库地址
yarn config set registry https://registry.yarnpkg.com
切换为淘宝源
yarn config set registry https://registry.npm.taobao.org
nrm
查看所有源
nrm ls
切换源
nrm use thsnpm
添加源
nrm add thsnpm http://www.baidu.com
删除源
nrm del thsnpm