執行 ruby -e "$(curl -fsSL https://raw.githubusercontent...)"
==>腳本將安裝:
/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
按 RETURN 繼續或按任何其他鍵中止
==>下載並安裝 Homebrew...
/usr/local/Homebrew/.git: 權限被拒絕
失敗期間: git init -q
nodejs不是有安裝版本的嗎?試試安裝版本的
指令前加 sudo 再試試
折騰好久,問題:/usr/local/Homebrew/沒有權限。解決sudo chown -R