1.查看当前镜像源

yarn config get registry
2.临时修改yarn源 
yarn save package_name --registry https://registry.npm.taobao.org/
3.修改yarn源为taobao源
yarn config set registry https://registry.npm.taobao.org/
4.修改yarn源为官方源
yarn config set registry https://registry.yarnpkg.com

您已经阅读00:00:00欢迎留言评论,喜欢的话就为作者点个赞或者赏颗糖吧! 分享