Topic
Homebrew
All articles collected around this topic.
zsh: command not found: brew on Mac: check the prefix, then fix PATH
When zsh on a Mac prints zsh: command not found: brew, first ls /opt/homebrew/bin/brew or /usr/local/bin/brew, then add the official brew shellenv line to your shell config. Do not start with sudo brew, and do not uninstall to “fix” a PATH problem.