解决macOS Catalina安装brew失败问题

起因

系统升级后,因为要安装python开发环境方便,想安装brew,但尝试运行brew命令命令

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

系统却直接报错。

Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core` exited with 128.

Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.

Failed during: /usr/local/bin/brew update –force

以为是网络问题,架上梯子后重新运行,问题依旧。

解决方法

手工用git把brew拉到本地目录,重新把运行安装命令,成功解决。

git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1 

Leave A Comment