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`
i think it's your network problem, just use VPN or workaround.
then try this again,
good luck with you