home-brew on macOS big sur

I installed home-brew via

/bin/bash -c "$(curl -fsSL )"

and whenever I type in brew I get:

Warning: /opt/homebrew/bin is not in your PATH.

I have tried several solutions online, none of them worked!

1 Answer

Are you trying to install Homebrew on a new M1 Mac? According to Homebrew's FAQ for Apple ARM Macs, the executable is located on a different path /opt/homebrew/bin.

So you need to add the path to your shell profile or rc file (Bash, ZSH...)

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

Restart your shell, and enjoy.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like