macbook异常
brew异常
- 长时间不更新,或当前使用的brew版本过低,在使用brew安装、更新应用时,出现以下报错信息
- ……Failed to upgrade Homebrew Portable Ruby!
- 解决方案
- 方案一,清理brew缓存
- brew cleanup
- 方案二,手动强制更新brew
- 依次执行,
brew update-reset
brew install --force-bottle brew
- 依次执行,
- 方案三,卸载重装brew
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
- 方案一,清理brew缓存
-