// 查看当前源
yarn config get registry
// 设置淘宝或内网源
yarn config set registry https://registry.npm.taobao.org --global
// 恢复源
yarn config set registry https://registry.yarnpkg.com --global
// 查看当前源
yarn config get registry
// 设置淘宝或内网源
yarn config set registry https://registry.npm.taobao.org --global
// 恢复源
yarn config set registry https://registry.yarnpkg.com --global