關於Homebrew的一些錯誤總結
阿新 • • 發佈:2019-02-16
今天使用Homebrew時出現了一些錯誤,解決之後就記錄了下來:
1.Brew update failed
描述:
Error: Failed while executing git pull
解決辦法:解除安裝Homebrew
,重新安裝。
解除安裝:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
安裝:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) "
2.安裝Homebrew
,出現一下錯誤:
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
但是解除安裝Homebrew
時,提示Failed to locate Homebrew!
,但是執行$ brew update
brew: command not found
解決辦法:
先刪除/usr/local
下的.git
與Cellar
資料夾,然後安裝Homebrew
即可。