framework: Wrong Laravel installation (fresh) with Laravel Installer or Composer Create-Project
- Laravel Version: 5.5.X
- PHP Version: PHP 7.0.23 (cli) (built: Sep 6 2017 03:11:01) ( NTS )
- Database Driver & Version: Not aplicable
Description:
Try install Laravel 5.5 for a new project. Usually use Laravel installer but after fail try with composer Error show:
Steps To Reproduce:
- First update composer
$ composer global update
Changed current directory to /home/excelle/.config/composer
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
- Install via Laravel Installer
$ laravel new warehouse.excellenting.com
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
- Installing doctrine/inflector (v1.2.0)
Loading from cache
...
...
- Installing laravel/framework (v5.5.4)
Loading from cache
phpunit/phpunit suggests installing phpunit/php-invoker (^1.1)
Generating optimized autoload files
You made a reference to a non-existent script @php -r "file_exists('.env') || copy('.env.example', '.env');"
You made a reference to a non-existent script @php artisan key:generate
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
You made a reference to a non-existent script @php artisan package:discover
Application ready! Build something amazing.
- Delete warehouse.excellenting.com and try with composer (This metodh instal 5.5.0 instead 5.5.4)
composer create-project --prefer-dist laravel/laravel warehouse.excellenting.com
Installing laravel/laravel (v5.5.0)
- Installing laravel/laravel (v5.5.0)
Loading from cache
Created project in warehouse.excellenting.com
You made a reference to a non-existent script @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing vlucas/phpdotenv (v2.4.0)
Loading from cache
...
...
Writing lock file
Generating autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
You made a reference to a non-existent script @php artisan package:discover
You made a reference to a non-existent script @php artisan key:generate
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (5 by maintainers)
That sounds like an old composer installation. Do a
composer self-update. That would also explain why it works on one machine, but not on another.@abkrim First of all, showing partial information isn’t a bug Secondly, If you haven’t updated a software/tool you can’t blame it for not doing something a higher version is supposed to do. Thirdly, this is a composer issue and has nothing to do with laravel
@abkrim Please try
composer clearbefore ancomposer create-project.