解决MacBook Pro终端报错Homebrew Error: Failure while executing;

  1. 在终端中输入一下命令(直接粘贴到终端,enter键等待安装完成就可)

cd "$(brew --repo)/Library/Taps/"

rm -rf homebrew

mkdir homebrew

cd homebrew

git clone git://mirrors.ustc.edu.cn/homebrew-core.git

git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

你可能感兴趣的:(git,github)