brew install 报错Error: Command failed with exit 128: git
•分享
630 0
AI摘要:在安装完brew之后,运行brew install命令可能会出现Error: Command failed with exit 128: git的报错。不要紧张,可以尝试运行brew -v命令查看提示,然后按照提示输入git config命令来解决问题。
Powered by AISummary.
按照
Error: Command failed with exit 128: git
出现这个报错不要紧张
brew -v
出现提示,按照提示输入
git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask