Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zsh: command not found: brew #3507

AlmogRnD opened this issue Jan 20, 2015 · 4 comments


Copy link

commented Jan 20, 2015

I'm getting zsh: command not found: brew and for mongoDB both are installed and in .zshrc file I have the following

export PATH=$HOME/bin:/usr/local/bin:$PATH

I also tried

export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
export PATH="/bin /usr/bin /usr/local/bin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/local/git/bin"


This comment has been minimized.

Copy link

commented Feb 18, 2015

Hmm. Seems like it should work. /usr/local/bin is the usual install location for brew.

Can you post your entire ~/.zshrc file as a gist, and your output for the following sequence of commands?

which brew
ls -l /usr/local/bin/brew
set | grep -a PATH

This comment has been minimized.

Copy link

commented Feb 18, 2015

Got it working had to uninstall and reinstall everything

@AlmogRnD AlmogRnD closed this Feb 18, 2015


This comment has been minimized.

Copy link

commented Feb 18, 2015



This comment has been minimized.

Copy link

commented Oct 18, 2018

Uninstalling and re-installing homebrew didn't work, but I did the following which worked for me.

Open the text ~/.zshrc file in text editor like vim or similar. Then, uncomment the export line for the below section. Source your file like so source ~/.zshrc

# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
4 participants
You can’t perform that action at this time.