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" >> ~/.zshrcRestart your shell, and enjoy.