Currently seeking new career opportunities in web development, particularly with Laravel, Hire Me

Ubuntu Valet command not found

David Carr

Development Ubuntu

On a new install of Ubuntu installing Valet worked fine at the composer stage but when trying to run valet commands resulted in 'Valet: command not found" errors. The problem is composer has not been added to the $PATH I tried adding the composer path to .profile which I think was not been executed the way I thought. Instead, I updated the path inside .bash_profile:

~/.bash_profile

Then updated my path:

export PATH=~/.composer/vendor/bin:$PATH

To ensure it took effect I reloaded the profile by running the command:

source ~/.profile

After then I was able to run Valet commands.

Laravel Modules Your Logo Your Logo Your Logo

Become a sponsor

Help support the blog so that I can continue creating new content!

Sponsor

My Latest Book

Modular Laravel Book - Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Learn Laravel with Laracasts

Faster Laravel Hosting

© 2006 - 2024 DC Blog. All code MIT license. All rights reserved.