/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
安装完成后会有如下提示
Run these three commands in your terminal to add Homebrew to your PATH:
echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /Users/baolingbo/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/baolingbo/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
按照提示执行
然后执行brew -v
出现以下提示,表示按照成功
Homebrew 3.6.7
Homebrew/homebrew-core (git revision 39a7548b99d; last commit 2022-10-25)