Mac 安装 brew 失败

bn:~ $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1

Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
remote: Counting objects: 3720, done.
remote: Compressing objects: 100% (3554/3554), done.
error: RPC failed; result=56, HTTP code = 200 | 8.00 KiB/s       
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Failed during: git fetch origin master:refs/remotes/origin/master -n --depth=1
bn:~ $ brew
-bash: /usr/local/bin/brew: No such file or directory
bn:~ $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
    rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
bn:~ $ rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
-bash: /usr/local/bin/brew: No such file or directory
bn:~ $ rm -rf /usr/local/Cellar /usr/local/.git

下载了,可安装一直都是失败,重试无效。提示内容`the remote end hung up unexpectedly`

阅读 10.5k
3 个回答

i think it's your network problem, just use VPN or workaround.

then try this again,

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

good luck with you

新手上路,请多包涵

如楼上所述, homebrew其实安装是非常简单的,主要就是安装不上的原因就是网络问题。

或是 从github clone下来再搞~

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进