Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew is not found on apple silicon

I have just installed brew on my new laptop but when I try and run brew its tells me there is no such command. What could I be doing wrong?

tomsmail@MacBook-Air ~ % brew
zsh: command not found: brew

I have fully installed brew along with the necessary xcode terminal commands.

like image 807
TomSmail Avatar asked Sep 18 '25 19:09

TomSmail


1 Answers

Run:

echo $SHELL

If your shell shown is zsh, do this:

echo "eval $(/opt/homebrew/bin/brew shellenv)" >> ~/.zprofile

If yor shell is bash, run this:

echo "eval $(/opt/homebrew/bin/brew shellenv)" >> ~/.bash_profile

If the result is csh, run this command:

/opt/homebrew/bin/brew shellenv >> ~/.cshrc
like image 197
James Risner Avatar answered Sep 21 '25 03:09

James Risner