Homebrew安装失败,但现在不会卸载

sc1*_*353 2 homebrew

我使用以下命令安装Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Run Code Online (Sandbox Code Playgroud)

然后将其作为错误返回:

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)"
Run Code Online (Sandbox Code Playgroud)

当我在终端中运行该命令时,我只是"找不到Homebrew!"

sid*_*rcy 5

我在mac OS上遇到了同样的问题.这里有很多答案建议我删除/usr/local/.git,但这不存在.我的解决方案如下:

我导航到:

/usr/local/Homebrew/bin
Run Code Online (Sandbox Code Playgroud)

跑了:

./brew doctor
Run Code Online (Sandbox Code Playgroud)

它警告我没有找到Homebrews bin并建议我将它添加到我的.bash_profile中,如下所示:

echo 'export PATH="/usr/local/Homebrew/bin:$PATH"' >> ~/.bash_profile
Run Code Online (Sandbox Code Playgroud)

在此之后我开始了一个新的会议,我又回来了