Fixing zsh command not found: brew? (installing Homebrew)

cd /opt/homebrew/bin/

PATH=$PATH:/opt/homebrew/bin

cd

touch .zshrc

echo export PATH=$PATH:/opt/homebrew/bin >> .zshrc

Run the commands in that order in terminal, you’ll be editing the path and creating the missing .zshrc file, exporting the path to this new file.

Now you should be able to use:

brew doctor

It should say: “Your system is ready to brew.”

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)