Home > database >  Why laravel installer returns command not found?
Why laravel installer returns command not found?

Time:10-08

I try to install new laravel app on fresh ubuntu installation, but I got error :

master@master-laptop:/mnt/_work_sdb8/wwwroot/lar$ composer global require "laravel/installer=~1.1"
Changed current directory to /home/master/.config/composer
./composer.json has been updated
Running composer update laravel/installer
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
13 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
master@master-laptop:/mnt/_work_sdb8/wwwroot/lar$ export PATH="$PATH:~/.composer/vendor/bin"
master@master-laptop:/mnt/_work_sdb8/wwwroot/lar$ laravel new NewLivewireApp --jet
laravel: command not found

Why I got error ? Is 1.1 valid installation for mopdern laravel app?

Thanks!

CodePudding user response:

I find it easier to just use composers built in installer, which i use on a regularly basis.

composer create-project laravel/laravel your-app

CodePudding user response:

composer create-project foo/bar command creates a new project from packagist.org

composer require foo/bar gets the module(library) from packagist.org

so you should use

composer create-project laravel/laravel mylaravelproject

for detail look at this link

https://packagist.org/packages/laravel/laravel

  • Related