Perhaps your missing a global install of laravel
with composer
:
Now run composer -version
from a terminal, if you don't see a version printed out then start there. Install it using this link. If composer
is there check if laravel
is installed globally, run laravel -version
from a terminal you should see something similar to this:
Laravel Installer version 1.3.3
Now if that doesn't appear then it's not installed, install using:
composer global require "laravel/installer"
Now add composer to your system PATH
so you can run laravel
command. Open your /home/$USER/.bashrc
file and this line export PATH=$HOME/.composer/vendor/bin:$PATH
to it.
Steps:
Open .bashrc
with nano
:
nano /home/$USER/.bashrc
Add this line export PATH=$HOME/.composer/vendor/bin:$PATH
.
- UPDATE: On Ubuntu 18.04 the line should be
export PATH=$HOME/.config/composer/vendor/bin:$PATH
Source the file with source /home/$USER/.bashrc
Now run laravel -version
from terminal to ensure all went well. At this point you can now run the laravel
command to create applications.
Source:
Install laravel 5 on Ubuntu 16.04
https://laravel.com/docs/5.4#installing-laravel
UPDATE
Since your still seeing that error simply install that extension with:
sudo apt install php7.0-zip
Now run that laravel
command again.
Usage: command [options] [arguments]
Options: -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.
– varun Jun 15 '17 at 13:28laravel --version
so install that extension and give us the good news – George Udosen Jun 15 '17 at 13:52^
is to upvote an answer you like – George Udosen Jun 15 '17 at 15:19