设置yarn源修改为淘宝源
yarn修改为淘宝源
和npm修改淘宝源的的步骤差不多
-
查看当前源
yarn config get registry
-
临时修yran源
yarn save package_name --registry https://registry.npm.taobao.org/
-
修改yarn源为taobao源
yarn config set registry https://registry.npm.taobao.org/
-
修改yarn源为官方源
yarn config set registry https://registry.yarnpkg.com