每当我在终端中输入任何brew install命令时,我都会得到相同的错误:
==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 659774, done.
remote: Counting objects: 100% (338/338), done.
remote: Compressing objects: 100% (170/170), done.
error: 6957 bytes of body are still expected.31 MiB | 4.20 MiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-cask /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask --origin=origin --template=` exited with 128.有什么要修的吗?(我尝试过卸载和重新安装自制的和其他方法)
发布于 2022-08-03 18:51:54
这就是basically git clone issue,试着关闭压缩以查看它是否有帮助。
git config --global core.compression 0
https://stackoverflow.com/questions/73176884
复制相似问题