嗨,我正在尝试安装 Homebrew (MacOS Catalina)
在他们的官方网页上运行命令后,我收到以下错误。
在此先感谢您的帮助。
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (9/9), 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
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core` exited with 128.
Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.
Failed during: /usr/local/bin/brew update --force```
最佳答案
我在使用 mac M1 big sur 时遇到了问题。
以上是一个很大的帮助。谢谢
sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
then it failed.
cd /opt/homebrew/library/taps/homebrew
sudo rmdir homebrew-core
git clone https://github.com/Homebrew/homebrew-core /opt/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
我也在浏览器上登录 github 不确定这是否重要
关于 Homebrew 的致命 : early EOF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60495344/