安装homebrew报错 error: RPC failed; curl 18 transfer closed with outstanding read data remaining

 error: RPC failed; curl 18 transfer closed with outstanding read data remaining报错处理

出现这个错误的原因是项目太久,tag资源文件太大。再加上网速不行。

以下方法只试过方法一,可用!

方法一.加大缓存区

postBuffer的值配置成500M

终端输入
git config --global http.postBuffer 524288000


这个大约是500M,524288000的单位是b

 git config --list查看是否生效

方法二.少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

来自https://blog.csdn.net/shareye1992/article/details/81626554

原文地址:https://www.cnblogs.com/may18/p/12434717.html