执行ruby -e "$(curl -fsSL https://raw.githubusercontent...)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
/usr/local/Homebrew/.git: Permission denied
Failed during: git init -q
Isn’t there an installed version of nodejs? Try the installed version
Add sudo before the command and try again
After struggling for a long time, the problem is: /usr/local/Homebrew/ does not have permissions. Solve sudo chown -R