git下载失败问题 RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: The remote

Cloning into 'opencv_contrib'...
remote: Enumerating objects: 2160, done.
remote: Counting objects: 100% (2160/2160), done.
remote: Compressing objects: 100% (1916/1916), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
ERR! child process exited with code 128 (for more info, set '--loglevel silly')
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node ./install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.

原因:git默认缓存不足

解决:
更改缓冲区大小

git config http.postBuffer 524288000
git config https.postBuffer 524288000

全局修改也可以加上global参数

git config --global http.postBuffer 1048576000
git config --global https.postBuffer 1048576000

到这里可以解决大部分问题了,下载速度还是很慢。。。

发布了1 篇原创文章 · 获赞 0 · 访问量 4

猜你喜欢

转载自blog.csdn.net/u013799744/article/details/105652776