[未解決]yarn安裝報錯網絡問題解決


報錯內容:

info There appears to be trouble with your network connection. Retrying...

嘗試無果:

方法一:

npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist

方法二:

yarn config get registry
# -> https://registry.yarnpkg.com
yarn config set registry https://registry.npm.taobao.org
# -> yarn config v0.15.0
# -> success Set "registry" to "https://registry.npm.taobao.org".
# -> Done in 0.04s.
***一定注意源地址不能帶引號

我的博客即將同步至騰訊雲+社區,邀請大家一同入駐:https://cloud.tencent.com/developer/support-plan?invite_code=39hlklufiwaog


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM