我试过
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
但我收到了错误
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)"
The current contents of /usr/local are bin Cellar CONTRIBUTING.md etc Frameworks heroku Homebrew include lib n opt README README.md sbin share SUPPORTERS.md var .gitignore
所以我试过
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Failed to locate Homebrew!
所以我试过
rm -rf /usr/bin/.git and chown username /usr/local
但仍然如此。 我该如何解决这个问题。我需要有一个新的开始。 我的最终目的是将当前的ruby2.0更新为2.2
答案 0 :(得分:0)
考虑阅读Homebrew FAQ。
向下滚动列出的第四个常见问题列表: How do I uninstall Homebrew ?
或者,尝试运行它,然后运行上面提到的卸载过程 -
cd /usr/local
git init
git remote add origin https://github.com/Homebrew/homebrew
git pull origin master