nmtechnology's avatar

zsh command not found: brew and valet

:( I can't use valet commands or brew commands. I have tried to export the correct $PATH and it does not fix. When I echo $PATH here is the output.

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/ddc/.composer/vendor/bin :/usr/local/go/bin:/Users/ddc/Desktop/NMTechnology/companion/node_modules/.bin

0 likes
2 replies
frankincredible's avatar

Have you found this already: https://github.com/ohmyzsh/ohmyzsh/issues/3507

Looks like a lot of people were able to get this advice to work:

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

Don't forget to run source ~/.zshrc after editing the file.

1 like
nmtechnology's avatar

Awesome this helped me Frankincredible much appreciated.

Now if I can get MYSQL to work I can continue my project. I keep getting a connection refused error when I try to use php artisan migrate.

Please or to participate in this conversation.