嘗試使用/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"檔案上的命令在 M1 Mac Mini 上安裝自制軟體。
然后中途得到這個錯誤
==> Tapping homebrew/core
remote: Enumerating objects: 1107077, done.
remote: Counting objects: 100% (228/228), done.
remote: Compressing objects: 100% (157/157), done.
error: 545 bytes of body are still expected.44 MiB | 341.00 KiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed
Failed during: git fetch --force origin refs/heads/master:refs/remotes/origin/master
myuser~ %
不知道為什么,
uj5u.com熱心網友回復:
這更多是 github 結帳問題而不是 Homebrew 問題,請查看此建議:
可能是你的網路問題。如果網路太慢,則可能會意外斷開連接。
如果您有一個良好的互聯網并且仍然收到此訊息,則可能是發布緩沖區的問題。您可以通過在您的 cmd 中執行以下命令來解決它。
git config --global http.postBuffer 157286400
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/379886.html
上一篇:合并多個分支時如何避免合并沖突?
下一篇:github的機密存盤在哪里?
