安裝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


免責聲明!

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



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