发布于 3年前

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

今天再更新pod的时候一直报错误,见了如下两个错误:

错误一:解决fatal: unable to access 'https://github.com/homebrew/brew/':

错误二:error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

解决方案:

git config --global --unset http.proxy

git config --global --unset https.proxy

其他解决方案:

一,加大缓存区

git config --global http.postBuffer 524288000

这个大约是500M

二、少clone一些,–depth 1

git clone https://github.com/flutter/flutter.git --depth 1

–depth 1的含义是复制深度为1,就是每个文件只取最近一次提交,不是整个历史版本。

三、换协议

clone http方式换成SSH的方式,即 https:// 改为 git://

例如git clone https://github.com/flutter/flutter.git

换成git clone git://github.com/flutter/flutter.git

git
©2020 edoou.com   京ICP备16001874号-3