1

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?

1
  • You forgot to require laravel. Do composer global require "laravel/installer=~1.1" Commented Jul 3, 2015 at 9:16

1 Answer 1

3

First, download the Laravel installer using Composer:

Command like this,

composer global require "laravel/installer=~1.1" 

for more information Click Here

Sign up to request clarification or add additional context in comments.

1 Comment

Yeah, I have downloaded the Laravel installer before setting the environment variable with .bash_profile. But both laravel new and composer create-project commands can not be execute successful.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.