执行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
nodejs不是有安装版本的吗?试一下安装版本的
命令前加 sudo 再试试
折腾好久,问题:/usr/local/Homebrew/没有权限。解决sudo chown -R