Reputation: 41
Currently, I am in the process of installing Laravel Valet for the purpose of using it to locally develop with Kirby CMS.
I am following these instructions, once I try to install Valet I get a "command not found" error. After looking at other threads I attempted to find my device's Path using this code:
echo $PATH
In response I got this:
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/tohumakind/.config/composer/vendor/bin:/Users/tohumakind/.composer/vendor/bin:/Users/tohumakind/.composer/vendor/bin:/Users/tohumakind/.composer/vendor/bin
I wasn't sure what to do in regard to installing Valet? It looks like Composer is installed in my User folder? There's only one user on this device. Do I need to move it Composer to a different part of my computer?
I tried using this line, as recommended in a different thread, but it didn't do anything to solve the 'command not found issue':
export PATH=$PATH:~/.composer/vendor/bin
Upvotes: 4
Views: 3100
Reputation: 14798
In 2019 Apple has replaced bash with zsh as the default shell in macOS Catalina and later. To add path to your zsh shell, this command should work:
echo "export PATH=$PATH:$HOME/.composer/vendor/bin" >> ~/.zshrc
Make sure to restart your terminal for changes to be applied.
Upvotes: 4