Yarn source configuration Ali

1, look at the current source

yarn config get registry

2, the switching source Taobao

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
————————————————
Disclaimer: This article is CSDN blogger original article "JSlow", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/qq_19107011/article/details/97992167

Guess you like

Origin www.cnblogs.com/mouseleo/p/11905370.html