Skip to content
Advertisement

-bash: laravel: command not found

I have installed the composer and move the composer.phar file to /usr/local/bin just follow the following step:

JavaScript

Then I edit my ~/.bash_profile file as following:

JavaScript

and save the change and excute:

JavaScript

But, when I excute the laravel new test command, it returns an error:

JavaScript

PS: in /usr/local/bin directory have no laravel command just composer command exists.

Did I forgot something?

Advertisement

Answer

First, download the Laravel installer using Composer:

Command like this,

JavaScript

for more information Click Here

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement