Getting `Warning: /opt/homebrew/bin is not in your PATH.` on M1 Pro chip

Lim Sing
Feb 26, 2022

I had an issue after installed homebrew on Mac OS Monterey with M1 pro chip successfully. The error stated in warning: Warning: /opt/homebrew/bin is not in your PATH as shown in the picture below,

And hit zsh: command not found: brew when running brew

command not found: brew

To resolve this,

  1. Copy the command : echo ‘eval “$(/opt/homebrew/bin/brew shellenv)”’ >> /Users/username/.zprofile

2. run command: eval “$(/opt/homebrew/bin/brew shellenv)”

--

--