
If you have brew installed on your device and yet you get an error saying command not found brew, then probably you have not set the brew to the PATH variable.
How to add brew to PATH on M1/M2 Mac
- Open Terminal App,
- Open .zshrc file located under your user root directory,
% nano ~/.zshrc
- Add the below line PATH=$PATH:/opt/homebrew/bin
- Save the file: Contol + X followed by Y to save
- Now run source ~/.zshrc
- You have permanently set brew to PATH environment variable.
-
Have Questions? Post them here!
More Posts related to MacOS,
- Opening mac Terminal
- How to change default macOS Terminal Window size
- How to clear Mac Terminal screen
- Find Hostname of Mac running on macOS Ventura 13
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to switch from bash to zsh shell in macOS Terminal
- Limit scrollback rows in macOS Terminal
- How to Set Background Wallpaper on macOS 13 Ventura
- This operation couldnt be completed. Unable to locate a Java Runtime. [macOS]
- Encode or Decode Base64 String using Mac Terminal Command
- List of All Apple Silicon ARM Based M1/M2 Mac [updated Oct 2022)
- How to remove Siri from Menu Bar [macOS Big Sur]
- Must Know Homebrew Commands for Mac/Linux Users
- Hide Keyboard Text Input Icon on macOS Ventura Menu Bar
- 13.0 MacOS Ventura release date
- How to change the default location of Mac Screenshot
- How to set Out Of Office (OOO) on Outlook for Mac
- 30+ Zoom video communications application shortcuts for macOS
- How to install wget on macOS
- Mac turn dark mode on or off using terminal command
- Create Symbolic Link using Terminal Command
- Mac - How to Install VirtualBox
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to install homebrew (brew) on M1 Mac
- How to uninstall Microsoft Outlook on Mac
More Posts:
- npm WARN saveError ENOENT: no such file or directory, open /mnt/c/package.json - JavaScript
- Free Unlimited Calls from MTNL & BSNL Landlines from 1st May 2015 - HowTos
- Static IP MTNL available at Rs. 200 per month - HowTos
- Android Studio : Connection Error : Failed to download patch file - Android-Studio
- jQuery : Move to top of the page - jQuery
- Create SharePoint list from Excel spreadsheet and import table - SharePoint
- Android Studio: Cannot perform refactoring operation - Android-Studio
- List of jars required for Struts2 project - Java