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?
First, download the Laravel installer using Composer:
Command like this,
composer global require "laravel/installer=~1.1"
for more information Click Here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.