Yarn 配置阿里源

1、查看一下当前源

yarn config get registry

2、切换为淘宝源

yarn config set registry https://registry.npm.taobao.org
yarn config set sass_binary_site "https://npm.taobao.org/mirrors/node-sass/"
yarn config set phantomjs_cdnurl "http://cnpmjs.org/downloads"
yarn config set electron_mirror "https://npm.taobao.org/mirrors/electron/"
yarn config set sqlite3_binary_host_mirror "https://foxgis.oss-cn-shanghai.aliyuncs.com/"
yarn config set profiler_binary_host_mirror "https://npm.taobao.org/mirrors/node-inspector/"
yarn config set chromedriver_cdnurl "https://cdn.npm.taobao.org/dist/chromedriver"

参考
https://blog.csdn.net/solocao/article/details/82685068
https://blog.csdn.net/weixin_34050389/article/details/91316744
————————————————
版权声明:本文为CSDN博主「JSlow」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_19107011/article/details/97992167

猜你喜欢

转载自www.cnblogs.com/mouseleo/p/11905370.html