➜ ~ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-e:77: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040677
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
The current contents of /usr/local are bin CODEOFCONDUCT.md etc git lib Library LICENSE.txt munki README.md sbin share .git .github .gitignore
➜ ~ brew install maven
zsh: command not found: brew
ベストアンサー1
macOS Big Sur (11.0.1) でも同様の問題が発生しました。私の場合、homebrew は/opt/homebrew/
ではなく に保存されていました/usr/local/...
。
そこで私は
export PATH=/opt/homebrew/bin:$PATH
ホームディレクトリのファイルに保存し.zshrc
、ZSH シェルは brew コマンドを見つけることができました。