eva hsiao
eva hsiao

Reputation: 13

-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:

#curl -sS https://getcomposer.org/installer | php
#mv composer.phar /usr/local/bin/composer

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

export PATH=~/.composer/vendor/bin

and save the change and excute:

#source ~/.bash_profile

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

-bash: laravel: command not found

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

Did I forgot something?

Upvotes: 1

Views: 1653

Answers (1)

Jigs Virani
Jigs Virani

Reputation: 4167

First, download the Laravel installer using Composer:

Command like this,

composer global require "laravel/installer=~1.1"

for more information Click Here

Upvotes: 3

Related Questions