- 場景
項目中打包遇到了點問題,所以想刪除原先裝好的依賴包,重新yarn,結果神奇的報錯了,無語。。。 - 遇到的問題
(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 ""