前提
本身已经安装过
HomeBrew
,且又重新使用安装命令进行安装错误提示
/bin/bash: line 256: /usr/local/bin/brew: No such file or directory Failed during: /usr/local/bin/brew update --force --quiet
查看与解决
ls -l /usr/local/Homebrew
若存在,且提示上面的错误提示,直接将将旧的目录删除
sudo rm -rf Homebrew
删除后执行安装
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"