
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.
-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to MacOS,
- How to Display Analog Clock on Mac Menu Bar
- Shutdown Mac Terminal Command
- How to know the Serial Number of MacBook on macOS Ventura 13.0
- macOS: Remove Desktop or Documents Folder from iCloud Drive Syncing
- [fix] How to Show file extensions on all files on Mac
- How to install Zoom Add-in to Outlook (Mac)
- How to turn off Stage Manager - macOS Ventura
- Fix - Xode - Internal logic error: Connection was invalidated
- How to do calculations in Mac Terminal
- How to delete a Page in Microsoft Word File on Mac (macOS)
- How to Refresh Mac Desktop
- How to install Java on macOS [Big Sur]
- How to Disable Mac Terminal Bell Sound
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to Uninstall Brew on Mac
- Find your macOS version
- Change TextEdit File Encoding
- AppleScript Example with TextEdit
- How to install homebrew (brew) on M1 Mac
- How to Find File and Directory Size in Mac Terminal
- How to open new tab in Sublime Text Editor [macOS]
- How to list all users in Mac Terminal
- Turn off Auto-Capitalization on macOS Ventura 13
- How to check Command Line Tools Version [Updated for Ventura]
- Change Current User Password using Mac Terminal Command
More Posts:
- Fix: UnsupportedClassVersionError: Unsupported major.minor version 63.0 - Java
- Fix: Error: error:0308010C:digital envelope routines::unsupported NodeJs/Vue/React - JavaScript
- Which Python version is bundled with macOS Sonoma 14 by default - MacOS
- Reading JSON file in Python with Examples - Python
- AlertDialog with image using ImageView Example - Android
- Chrome : When Adobe flash player has finished updating, reload this page to active it - Chrome
- Python: Pandas Merge With Examples - Python
- How to rename a directory using Command Line Terminal - Linux