yarn 過程中遇到的問題


  1. 場景
    項目中打包遇到了點問題,所以想刪除原先裝好的依賴包,重新yarn,結果神奇的報錯了,無語。。。
  2. 遇到的問題
    (1)error An unexpected error occurred: "https://raw.githubusercontent.com/seonim-ryu/Squire/fd40b4e3020845825701e9689f190bab3f4775d4/package.json: connect ECONNREFUSED 0.0.0.0:443".
    原因:找不到 https://raw.githubusercontent.com
    解決方案:通過https://www.ipaddress.com/查詢raw.githubusercontent.com的IP,並在hosts中配置
185.199.108.133  raw.githubusercontent.com

(2)fatal: unable to access 'https://github.com/nhn/raphael.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
原因:代理出現問題
解決方案:執行命令

git config --global --add remote.origin.proxy ""


免責聲明!

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



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