使用HomeBrew官網提供的安裝命令/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
,遇到如下錯誤
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (54/54), done.
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Failed during: git fetch origin --force
我的解決方式:
- 首先換一個網絡較好的網,不要卡的或慢的。
- 把梯子退掉。
- 換成國內的源,使用這個命令進行重新安裝
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
- 選擇一個源,我選的中科大。稍等片刻,幾分鍾不到吧。
- 安裝成功