Homebrew can be installed on Apple silicon M1 devices but the installation script put the files into this directory (/opt/homebrew) 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 export PATH="/opt/homebrew/bin:$PATH" 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. Related articlesYou may also like:
14 Comments
José Rodríguez
4/24/2021 07:55:41 pm
thank you so much i have struggled for like 6 hours, muchas gracias
Reply
Sherif
4/24/2021 07:59:28 pm
I am happy to hear that it worked :) thank you
Reply
Steve
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.
Reply
purnadi
5/21/2021 01:48:25 am
wow.. great.. thanks you. it permanently works..
Reply
Tod
5/30/2021 10:07:43 am
brew install upx
Reply
sherif eid
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 ?
Reply
aylen
6/3/2021 02:01:50 am
i have the same problem, the brew doctor says: Your system is ready to brew.
Man
6/15/2021 09:49:34 am
Hi, I am having the same issue.
Tod
6/1/2021 03:56:56 am
Thanks for replying, here is message I got.
Reply
Sikhil
6/12/2021 06:38:07 pm
Hi..
Reply
Sem
7/6/2021 06:49:47 pm
Hi Sherif Eid
Reply
Brian
7/11/2021 07:15:32 pm
This was really frustrating me, and this fix worked perfect! Thank you so much
Reply
Ayushman Kumar Priyadarshan
7/22/2021 06:34:00 pm
Thanks a lot. this issue cost me 4 days of struggling.
Reply
Simon
10/18/2021 01:00:48 am
Doesn't work, what a joke.
Reply
Leave a Reply. |
Details
AuthorSherif Eid. |