
How to Fix Homebrew "Command Not Found" on Apple Silicon Mac
Updated
All you need is your Terminal open and a few seconds to update your configuration.

If you just installed Homebrew on an Apple Silicon Mac and keep getting a command not found: brew error in your Terminal, your installation isn't broken; macOS just doesn't know where to look for it yet.
How to Fix
First, open your Terminal and open your zsh profile file by running open ~/.zprofile. If the file doesn't exist yet, TextEdit will open a blank document for you.
Now, copy and paste this line into the file:
eval "$(/opt/homebrew/bin/brew shellenv)"
Save the file using command + s and close TextEdit.
To apply the changes right away without restarting your Terminal, run
To confirm everything is working, test it by running:
brew --version
You should see the Homebrew version number appear on your screen.
Apple Silicon Macs install Homebrew under /opt/homebrew instead of the traditional /usr/local path used by Intel Macs, which is why adding this line to your shell profile is required.
