zsh: command not found: brew in mac

Viewed 10396

I had homebrew installed on my mac. Today after sometime, I tried to download psql through brew on my mac on terminal but I keeping getting:

zsh: command not found: brew

I have it installed so I do not know why zsh is not picking brew?

1 Answers

First you have run the below command for install homebrew on particular path

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

And then set the path using below command

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

Its working fine for MacOS

Related