This question already has an answer here:
When I try to install laravel 5 in ubuntu, I am getting error like this,
laravel: command not found
I followed these steps,
composer global require "laravel/installer=~1.1"
laravel new blog
This question already has an answer here:
When I try to install laravel 5 in ubuntu, I am getting error like this,
laravel: command not found
I followed these steps,
composer global require "laravel/installer=~1.1"
laravel new blog
Got fixed after setting path for composer vendors.So the correct step which worked is,
Download laravel installer:
composer global require "laravel/installer=~1.1"
Setup PATH:
export PATH="~/.composer/vendor/bin:$PATH"
Then run command :
laravel new project-name
orsudo laravel new project-name
For mac,
Ubuntu 16.04 with latest laravel installer
Install composer if not exists,
Install laravel installer,
Edit environment config,
Then add,
Then reload path config,
Ubuntu 17.04 and 17.10:
Ubuntu 18.04
In Ubuntu 16 the path is under the
~./config
directory as shown below.