RPC failed; curl 92 HTTP/2 stream 5 基础流结束之前未完全关闭

今天在使用 fvm install 2.10.5 安装命令时出现了以下报错

PS G:\dev\localsend> fvm install 2.10.5
Flutter "2.10.5" is not installed.

Installing version: 2.10.5...
Cloning into 'C:\Users\eenot\fvm\versions\2.1
0.5'...
remote: Enumerating objects: 448280, done.
remote: Counting objects: 100% (831/831), don
e.
remote: Compressing objects: 100% (399/399),
done.
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly before end of the underlying stream
error: 592 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Could not install 2.10.5

Please run command with  --verbose if you want more information

解决办法

设置 HTTP 版本,只需要在控制台运行以下命令:

git config --global http.version HTTP/1.1
庄朋龙
庄朋龙

一个爱生活的技术菜鸟

留下评论

您的邮箱地址不会被公开。 必填项已用 * 标注