在过去的几个月里,我一直在断断续续地尝试在mac上安装自制软件,但它不起作用。我试过删除目录,安装和重新安装自制软件,但无法安装某些库,如mongoosedb,我甚至重置了我的计算机,问题仍然存在。这是我现在在尝试重新安装自制软件时收到的错误消息。
==> Tapping homebrew/core
remote: Enumerating objects: 973663, done.
remote: Counting objects: 100% (340/340), done.
remote: Compressing objects: 100% (189/189), done.
error: 4292 bytes of body are still expected.67 MiB | 6.00 MiB/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
还有什么建议我可以解决这个问题吗?谢谢
尽管听起来很愚蠢,但问题是我在我的处女无线网络上启用了儿童屏蔽。
我建议几种方法,因为自制啤酒依赖于酒窖
尝试进行
rm -f /usr/local/Cellar
rm -f /usr/local/.git
这将重置您的git,但当您输入克隆命令时,您可以在提供git凭据后继续操作。
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
如果你有ruby设置
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"