Ad

Vagrant Ssh Code Executing Gives An Error

- 1 answer

I'm stuck with a silly problem. I'm using Vagrant with Homestead and Laravel for developing. The problem is when I go to a project and try to execute any command it gives me the following error:

Error message

I have set the PATH = "usr/local/bin". I'm stuck with this for 2 days and I don't know what to do so If you had the same problem please share your experience with me.

Ad

Answer

First, be sure that your PATH is set correctly: PATH=$PATH:/usr/bin:/usr/local/bin

If you're getting a permission denied error try giving yourself execute permission on artisan and laravel like so:

sudo chmod +x /usr/local/bin/laravel

Ad
source: stackoverflow.com
Ad