问题:

记录一个问题,原因是今天使用Mac上面的Brew安装一个Redis发生了错误,我也是头一次使用Brew。
理论上来说使用brew安装出现这种Error都是可以解决的!

具体如图所示,执行brew install redis报错Command failed with exit 128:git

解决方式:

输入brew -v后会提示你执行两个配置命令,直接复制执行就ok了!

git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask
Homebrew/homebrew-cask

git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
Homebrew/homebrew-core

具体如下图所示!
在这里插入图片描述

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐