
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,
- Clear Screen shortcut macOS Terminal
- What is macOS Ventura?
- [fix] How to Show file extensions on all files on Mac
- How to Find Where Mac Terminal App is Located?
- AutoSave button not working on Office on Mac (Word, Excel or Powerpoint)
- macOS say command text to speech using various voices and languages
- How to change Ping TTL value on macOS
- Open .bash_profile File in TextEdit using Terminal
- How to know the Safari Version on Mac
- How to Copy full Absolute Path of a File on Mac
- 13.0 MacOS Ventura release date
- Enable spell check in Sublime Text (macOS)
- How to Display Analog Clock on Mac Menu Bar
- How to turn off Location Services macOS Ventura 13
- How to Open VS Code on Mac
- Add Bookmark macOS Safari
- How to Fix cd: too many arguments Error in Terminal: A Step-by-Step Guide
- How to install wget on macOS
- Select Line Number TextEdit on Mac
- Strikethrough Text in Excel for Mac
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to hide or display Wifi icon in macOS Bug Sur Menu Bar
- How to install Yarn on Mac (macOS)
- How to fix command not found brew (bash, zsh) on macOS Terminal
- How to Schedule Mails in macOS Ventura
More Posts:
- Fix: error: Jupyter command `jupyter-nbconvert` not found [VSCode] - Python
- Convert JSON to Java Collection Map using Jackson - Java
- Default speed of Marquee tag : SCROLLAMOUNT - Html
- Fix: AirPods not visible under Mac Bluetooth devices - MacOS
- How to clear Microsoft Teams Cache on Mac (macOS) - Teams
- AWS CLI Command to Get a List of SNS Topics - AWS
- Efficient way to perform HTTP cURL GET/POST Requests with Payload - cURL
- How to enable line numbers in IntelliJ Android Studio for all files - Android-Studio