Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Zsh: command not found: valet' - unable to install Valet

I just tried installing valet for a very long time, - and I couldn't find any help anywhere. No matter what I tried, then it kept saying:

Zsh: command not found: valet

I'm running Zshell (instead of Bash) and OSX. I've had Brew installed for quite a while.

I'll answer this myself, - so hopefully people in the same situation can find this in the future.

like image 464
Zeth Avatar asked Nov 02 '25 11:11

Zeth


2 Answers

The solution was adding composer bin to the path. You can use the following commands

From the terminal

  1. export PATH="$PATH:$HOME/.composer/vendor/bin"
  2. echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bash_profile
  3. source ~/.bash_profile
  4. valet install
like image 148
bigdevlarry Avatar answered Nov 04 '25 11:11

bigdevlarry


I had a very similar problem under Zsh, but my solution was easier. Rather than adding ~/.composer/vendor/bin to my $PATH, I needed to use the full directory name; i.e., /Users/[your-user-name]/.composer/vendor/bin.

like image 32
sevenpointsix Avatar answered Nov 04 '25 13:11

sevenpointsix



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!