Skip to content

Instantly share code, notes, and snippets.

@davidjenner
Created February 18, 2025 09:12
Show Gist options
  • Select an option

  • Save davidjenner/07ed78a2d8f9ca9c1bc5fd4564f22653 to your computer and use it in GitHub Desktop.

Select an option

Save davidjenner/07ed78a2d8f9ca9c1bc5fd4564f22653 to your computer and use it in GitHub Desktop.
Homebrew not fully installed - sudo: brew: command not found
---------------------------
I had this error
---------------------------
david@Davids-MacBook-Air / % brew tap hashicorp/tap
zsh: command not found: brew
david@Davids-MacBook-Air / % sudo brew tap hashicorp/tap
Password:
sudo: brew: command not found
---------------------------
---------------------------
what I am using
---------------------------
Apple Sillicon M1 MacBook Air - Version 15.3.1 (24D70)
I had installed Homebrew from - https://brew.sh/
In 'Terminal, I'm running it in .zsh
---------------------------
---------------------------
Troubshooting steps
---------------------------
I ran 'sudo' - didn't resolve
---------------------------
---------------------------
Resolution
---------------------------
This fixed it by running these commands and adding it to my path
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
nano ~/.zshrc
export PATH=$PATH:/opt/homebrew/bin
source ~/.zshrc
brew --version
---------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment