首页 > Mac 安装 brew 失败

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`


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

或是 从github clone下来再搞~


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


把ruby的gem镜像换成淘宝的

淘宝的镜像说明,速度良心啊

【热门文章】
【热门文章】