How to fix "Zsh: command not found - brew" on MacBook M1 silicon devicesRead Now
Homebrew can be installed on Apple silicon M1 devices but the installation script put the files into this directory
So, when you try to use any command like "brew help"
you will get this error message "Zsh: command not found - brew"
which means you have to move homebrew to its correct place under usr/local folder
You can watch the correct process for homebrew installation from here
To correct the installation you have to use these commands separately on terminal
1) Write this command on terminal; and press return
2) Then this command on terminal and press return
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> $HOME/.zshrc
you will see nothing after these commands and this is good.
now, write the command "brew help"
you will find that everything is ok and homebrew is working correctly :)
To watch the process of correcting homebrew installation, follow this link
Please don't hesitate to contact me if you faced any problem while applying the process.
You may also like:
4/24/2021 07:55:41 pm
thank you so much i have struggled for like 6 hours, muchas gracias
4/24/2021 07:59:28 pm
I am happy to hear that it worked :) thank you
4/25/2021 10:55:28 am
upx wont install on the M1. I have changed the path as suggested, but no bottles come up.
5/21/2021 01:48:25 am
wow.. great.. thanks you. it permanently works..
5/30/2021 10:07:43 am
brew install upx
5/30/2021 09:47:52 pm
please test if you installed homebrew correctly, just write this command "brew doctor" on terminal ,, inform me what message you get ?
6/3/2021 02:01:50 am
i have the same problem, the brew doctor says: Your system is ready to brew.
6/15/2021 09:49:34 am
Hi, I am having the same issue.
6/1/2021 03:56:56 am
Thanks for replying, here is message I got.
6/12/2021 06:38:07 pm
7/6/2021 06:49:47 pm
Hi Sherif Eid
7/11/2021 07:15:32 pm
This was really frustrating me, and this fix worked perfect! Thank you so much
Ayushman Kumar Priyadarshan
7/22/2021 06:34:00 pm
Thanks a lot. this issue cost me 4 days of struggling.
10/18/2021 01:00:48 am
Doesn't work, what a joke.
Leave a Reply.