yarn安裝依賴速度太慢的解決辦法
更新時間:2023年12月21日 11:55:23 作者:sg_knight
本文介紹如何通過修改配置文件解決yarn安裝依賴速度太慢的問題,文中通過圖文結合講解的非常詳細,對大家的學習或工作有一定的幫助,需要的朋友可以參考下
1、在用戶目錄文件夾下找到.yarnc文件
2、編輯.yarnc文件,添加如下內容
registry "https://registry.npm.taobao.org" chromedriver_cdnurl "https://cdn.npm.taobao.org/dist/chromedriver" electron_mirror "https://npm.taobao.org/mirrors/electron/" lastUpdateCheck 1664005622411 phantomjs_cdnurl "http://cnpmjs.org/downloads" profiler_binary_host_mirror "https://npm.taobao.org/mirrors/node-inspector/" sass_binary_site "https://npm.taobao.org/mirrors/node-sass/" sqlite3_binary_host_mirror "https://foxgis.oss-cn-shanghai.aliyuncs.com/"
3、編輯后的文件如下
到此這篇關于yarn安裝依賴速度太慢的解決辦法的文章就介紹到這了,更多相關yarn安裝依賴慢內容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!