ITECH4MAC
  • Home
  • Guides & tutorials
    • TechTalk
    • macOS tutorials
    • Homebrew package tutorials
    • Create Bootable MacOS
    • Applications troubleshooting
    • iPhone tutorials
    • virtual machine
  • iPhone
    • 2021 >
      • iPhone 13 Pro Max
      • iPhone 13 Pro
      • iPhone 13
      • iPhone 13 Mini
    • 2020 >
      • iPhone 12 Pro Max
      • iPhone 12 Pro
      • iPhone 12
      • iPhone 12 Mini
      • iPhone SE 2nd
    • 2019
    • 2018
    • 2017
  • Downloads
  • YouTube Channel ➚
  • Request support

4/2/2021

How to fix "Zsh: command not found - brew" on MacBook M1 silicon devices

14 Comments

Read Now
 
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.
​

- If you find the video helpful, please 
press the red button and subscribe to my YouTube Channel where you will find more tutorials. this will be great and push me to do the best :).
​

Related articles

How to install Homebrew, UPX, & Cask
How to install Homebrew, UPX, & Cask
How to completely uninstall homebrew without leaving any leftover files
How to completely uninstall homebrew without leaving any leftover files
How to solve the homebrew error "Zsh: command not found - brew" on intel devices
How to solve the homebrew error "Zsh: command not found - brew" on intel devices

You may also like:

How to Quit all apps on macOS desktop by single click?
How to Quit all apps on macOS desktop by single click?
How to create a DMG installer for your new application?
How to create a DMG installer for your new application?
How to activate additional preferences on your MacBook ?
How to activate additional preferences on your MacBook ?
​Fix the Battery drain issue, Battery service recommended, Battery capacity reduced
​Fix the Battery drain issue, Battery service recommended, Battery capacity reduced
How to create a bootable official macOS Big Sur USB install drive?
How to create a bootable official macOS Big Sur USB install drive?
How to change your Mac cursor to a customised image (face, finger, animal)?
How to change your Mac cursor to a customised image (face, finger, animal)?

Share

14 Comments
Details

    Join Us, Interesting Homebrew package tutorials 👉

    Author

    Sherif Eid.

Powered by Create your own unique website with customizable templates.
  • Home
  • Guides & tutorials
    • TechTalk
    • macOS tutorials
    • Homebrew package tutorials
    • Create Bootable MacOS
    • Applications troubleshooting
    • iPhone tutorials
    • virtual machine
  • iPhone
    • 2021 >
      • iPhone 13 Pro Max
      • iPhone 13 Pro
      • iPhone 13
      • iPhone 13 Mini
    • 2020 >
      • iPhone 12 Pro Max
      • iPhone 12 Pro
      • iPhone 12
      • iPhone 12 Mini
      • iPhone SE 2nd
    • 2019
    • 2018
    • 2017
  • Downloads
  • YouTube Channel ➚
  • Request support