Need to connect to the ladder terminal to enter:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
After entering the above command: a prompt is given: the following two sentences need to be entered. If there is no prompt, do not enter
1.
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/xxx/.zprofile
2、
eval "$(/opt/homebrew/bin/brew shellenv)"
brew -v
Homebrew 4.1.6
Uninstall:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"