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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章