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)”

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Lim Sing
Lim Sing

No responses yet

Write a response