1.查询yarn默认镜像源
yarn config get registry
输出:https://registry.yarnpkg.com
2.设置淘宝镜像源
yarn config set registry https://registry.npmmirror.com/
3.验证是否设置成功
yarn config get registry
输出:https://registry.npmmirror.com/,镜像源更改成功
1.查询yarn默认镜像源
yarn config get registry
输出:https://registry.yarnpkg.com
2.设置淘宝镜像源
yarn config set registry https://registry.npmmirror.com/
3.验证是否设置成功
yarn config get registry
输出:https://registry.npmmirror.com/,镜像源更改成功