安装home-brew下载失败解决失败

安装失败, 执行以下脚本卸载,

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)" 
#报错:Failed to locate Homebrew!

执行下面的语句后重新安装:

sudo rm -rf /usr/local/.git rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew rm -rf ~/Library/Caches/Homebrew

成功后,再次执行,下载脚本,执行安装:

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

你可能感兴趣的:(Tips)