1.查看当前的源
yarn config get registry
2.历史修改yarn源
yarn save package_name --registry https://registry.npm.taobao.org/
3.改用taobao源
yarn config set registry https://registry.npm.taobao.org/
4.改回官方源
yarn config set registry https://registry.yarnpkg.com