TiagoSilvaPereira / vemto2-issues

Repository to track Vemto 2 Issues
5 stars 0 forks source link

composer error message when create new project #78

Closed vimitali368 closed 6 months ago

vimitali368 commented 6 months ago

=Error+Message: (error)+FAILED+to+execute+command:+composer+create-project+laravel/laravel:^11.0+v207_test_b_m

Stack:

Error:+Command+failed:+composer+create-project+laravel/laravel:^11.0+v207_test_b_m
Creating+a+"laravel/laravel:11.0"+project+at+"./v207_test_b_m"
Installing+laravel/laravel+(v11.0.0)
++-+Installing+laravel/laravel+(v11.0.0):+Extracting+archive
Created+project+in+D:\.Main\Program\Dev\.Web\Laragon\.Full\.6\www\v207_test_b_m
>+@php+-r+"file_exists('.env')+||+copy('.env.example',+'.env');"
Loading+composer+repositories+with+package+information
Updating+dependencies
Lock+file+operations:+111+installs,+0+updates,+0+removals
++-+Locking+brick/math+(0.11.0)
++-+Locking+carbonphp/carbon-doctrine-types+(3.2.0)
++-+Locking+dflydev/dot-access-data+(v3.0.2)
++-+Locking+doctrine/inflector+(2.0.10)
++-+Locking+doctrine/lexer+(3.0.1)
++-+Locking+dragonmantank/cron-expression+(v3.3.3)
++-+Locking+egulias/email-validator+(4.0.2)
++-+Locking+fakerphp/faker+(v1.23.1)
++-+Locking+filp/whoops+(2.15.4)
++-+Locking+fruitcake/php-cors+(v1.3.0)
++-+Locking+graham-campbell/result-type+(v1.1.2)
++-+Locking+guzzlehttp/guzzle+(7.8.1)
++-+Locking+guzzlehttp/promises+(2.0.2)
++-+Locking+guzzlehttp/psr7+(2.6.2)
++-+Locking+guzzlehttp/uri-template+(v1.0.3)
++-+Locking+hamcrest/hamcrest-php+(v2.0.1)
++-+Locking+laravel/framework+(v11.3.1)
++-+Locking+laravel/pint+(v1.15.1)
++-+Locking+laravel/prompts+(v0.1.18)
++-+Locking+laravel/sail+(v1.29.1)
++-+Locking+laravel/serializable-closure+(v1.3.3)
++-+Locking+laravel/tinker+(v2.9.0)
++-+Locking+league/commonmark+(2.4.2)
++-+Locking+league/config+(v1.2.0)
++-+Locking+league/flysystem+(3.27.0)
++-+Locking+league/flysystem-local+(3.25.1)
++-+Locking+league/mime-type-detection+(1.15.0)
++-+Locking+mockery/mockery+(1.6.11)
++-+Locking+monolog/monolog+(3.6.0)
++-+Locking+myclabs/deep-copy+(1.11.1)
++-+Locking+nesbot/carbon+(3.2.4)
++-+Locking+nette/schema+(v1.3.0)
++-+Locking+nette/utils+(v4.0.4)
++-+Locking+nikic/php-parser+(v5.0.2)
++-+Locking+nunomaduro/collision+(v8.1.1)
++-+Locking+nunomaduro/termwind+(v2.0.1)
++-+Locking+phar-io/manifest+(2.0.4)
++-+Locking+phar-io/version+(3.2.1)
++-+Locking+phpoption/phpoption+(1.9.2)
++-+Locking+phpunit/php-code-coverage+(10.1.14)
++-+Locking+phpunit/php-file-iterator+(4.1.0)
++-+Locking+phpunit/php-invoker+(4.0.0)
++-+Locking+phpunit/php-text-template+(3.0.1)
++-+Locking+phpunit/php-timer+(6.0.0)
++-+Locking+phpunit/phpunit+(10.5.18)
++-+Locking+psr/clock+(1.0.0)
++-+Locking+psr/container+(2.0.2)
++-+Locking+psr/event-dispatcher+(1.0.0)
++-+Locking+psr/http-client+(1.0.3)
++-+Locking+psr/http-factory+(1.0.2)
++-+Locking+psr/http-message+(2.0)
++-+Locking+psr/log+(3.0.0)
++-+Locking+psr/simple-cache+(3.0.0)
++-+Locking+psy/psysh+(v0.12.3)
++-+Locking+ralouphie/getallheaders+(3.0.3)
++-+Locking+ramsey/collection+(2.0.0)
++-+Locking+ramsey/uuid+(4.7.5)
++-+Locking+sebastian/cli-parser+(2.0.1)
++-+Locking+sebastian/code-unit+(2.0.0)
++-+Locking+sebastian/code-unit-reverse-lookup+(3.0.0)
++-+Locking+sebastian/comparator+(5.0.1)
++-+Locking+sebastian/complexity+(3.2.0)
++-+Locking+sebastian/diff+(5.1.1)
++-+Locking+sebastian/environment+(6.1.0)
++-+Locking+sebastian/exporter+(5.1.2)
++-+Locking+sebastian/global-state+(6.0.2)
++-+Locking+sebastian/lines-of-code+(2.0.2)
++-+Locking+sebastian/object-enumerator+(5.0.0)
++-+Locking+sebastian/object-reflector+(3.0.0)
++-+Locking+sebastian/recursion-context+(5.0.0)
++-+Locking+sebastian/type+(4.0.0)
++-+Locking+sebastian/version+(4.0.1)
++-+Locking+spatie/backtrace+(1.5.3)
++-+Locking+spatie/flare-client-php+(1.4.4)
++-+Locking+spatie/ignition+(1.13.2)
++-+Locking+spatie/laravel-ignition+(2.5.2)
++-+Locking+symfony/clock+(v7.0.5)
++-+Locking+symfony/console+(v7.0.6)
++-+Locking+symfony/css-selector+(v7.0.3)
++-+Locking+symfony/deprecation-contracts+(v3.4.0)
++-+Locking+symfony/error-handler+(v7.0.6)
++-+Locking+symfony/event-dispatcher+(v7.0.3)
++-+Locking+symfony/event-dispatcher-contracts+(v3.4.2)
++-+Locking+symfony/finder+(v7.0.0)
++-+Locking+symfony/http-foundation+(v7.0.6)
++-+Locking+symfony/http-kernel+(v7.0.6)
++-+Locking+symfony/mailer+(v7.0.6)
++-+Locking+symfony/mime+(v7.0.6)
++-+Locking+symfony/polyfill-ctype+(v1.29.0)
++-+Locking+symfony/polyfill-intl-grapheme+(v1.29.0)
++-+Locking+symfony/polyfill-intl-idn+(v1.29.0)
++-+Locking+symfony/polyfill-intl-normalizer+(v1.29.0)
++-+Locking+symfony/polyfill-mbstring+(v1.29.0)
++-+Locking+symfony/polyfill-php72+(v1.29.0)
++-+Locking+symfony/polyfill-php80+(v1.29.0)
++-+Locking+symfony/polyfill-php83+(v1.29.0)
++-+Locking+symfony/polyfill-uuid+(v1.29.0)
++-+Locking+symfony/process+(v7.0.4)
++-+Locking+symfony/routing+(v7.0.6)
++-+Locking+symfony/service-contracts+(v3.4.2)
++-+Locking+symfony/string+(v7.0.4)
++-+Locking+symfony/translation+(v7.0.4)
++-+Locking+symfony/translation-contracts+(v3.4.2)
++-+Locking+symfony/uid+(v7.0.3)
++-+Locking+symfony/var-dumper+(v7.0.6)
++-+Locking+symfony/yaml+(v7.0.3)
++-+Locking+theseer/tokenizer+(1.2.3)
++-+Locking+tijsverkoyen/css-to-inline-styles+(v2.2.7)
++-+Locking+vlucas/phpdotenv+(v5.6.0)
++-+Locking+voku/portable-ascii+(2.0.1)
++-+Locking+webmozart/assert+(1.11.0)
Writing+lock+file
Installing+dependencies+from+lock+file+(including+require-dev)
Package+operations:+111+installs,+0+updates,+0+removals
++-+Downloading+laravel/framework+(v11.3.1)
++-+Downloading+filp/whoops+(2.15.4)
++-+Downloading+nunomaduro/collision+(v8.1.1)
+0/3+[>---------------------------]+++0%
+2/3+[==================>---------]++66%
+3/3+[============================]+100%
++-+Installing+doctrine/inflector+(2.0.10):+Extracting+archive
++-+Installing+doctrine/lexer+(3.0.1):+Extracting+archive
++-+Installing+symfony/polyfill-ctype+(v1.29.0):+Extracting+archive
++-+Installing+webmozart/assert+(1.11.0):+Extracting+archive
++-+Installing+dragonmantank/cron-expression+(v3.3.3):+Extracting+archive
++-+Installing+symfony/deprecation-contracts+(v3.4.0):+Extracting+archive
++-+Installing+psr/container+(2.0.2):+Extracting+archive
++-+Installing+fakerphp/faker+(v1.23.1):+Extracting+archive
++-+Installing+symfony/polyfill-php80+(v1.29.0):+Extracting+archive
++-+Installing+symfony/polyfill-php83+(v1.29.0):+Extracting+archive
++-+Installing+symfony/polyfill-mbstring+(v1.29.0):+Extracting+archive
++-+Installing+symfony/http-foundation+(v7.0.6):+Extracting+archive
++-+Installing+fruitcake/php-cors+(v1.3.0):+Extracting+archive
++-+Installing+psr/http-message+(2.0):+Extracting+archive
++-+Installing+psr/http-client+(1.0.3):+Extracting+archive
++-+Installing+ralouphie/getallheaders+(3.0.3):+Extracting+archive
++-+Installing+psr/http-factory+(1.0.2):+Extracting+archive
++-+Installing+guzzlehttp/psr7+(2.6.2):+Extracting+archive
++-+Installing+guzzlehttp/promises+(2.0.2):+Extracting+archive
++-+Installing+guzzlehttp/guzzle+(7.8.1):+Extracting+archive
++-+Installing+guzzlehttp/uri-template+(v1.0.3):+Extracting+archive
++-+Installing+laravel/pint+(v1.15.1):+Extracting+archive
++-+Installing+symfony/polyfill-intl-normalizer+(v1.29.0):+Extracting+archive
++-+Installing+symfony/polyfill-intl-grapheme+(v1.29.0):+Extracting+archive
++-+Installing+symfony/string+(v7.0.4):+Extracting+archive
++-+Installing+symfony/service-contracts+(v3.4.2):+Extracting+archive
++-+Installing+symfony/console+(v7.0.6):+Extracting+archive
++-+Installing+voku/portable-ascii+(2.0.1):+Extracting+archive
++-+Installing+phpoption/phpoption+(1.9.2):+Extracting+archive
++-+Installing+graham-campbell/result-type+(v1.1.2):+Extracting+archive
++-+Installing+vlucas/phpdotenv+(v5.6.0):+Extracting+archive
++-+Installing+symfony/css-selector+(v7.0.3):+Extracting+archive
++-+Installing+tijsverkoyen/css-to-inline-styles+(v2.2.7):+Extracting+archive
++-+Installing+symfony/var-dumper+(v7.0.6):+Extracting+archive
++-+Installing+symfony/polyfill-uuid+(v1.29.0):+Extracting+archive
++-+Installing+symfony/uid+(v7.0.3):+Extracting+archive
++-+Installing+symfony/routing+(v7.0.6):+Extracting+archive
++-+Installing+symfony/process+(v7.0.4):+Extracting+archive
++-+Installing+symfony/polyfill-php72+(v1.29.0):+Extracting+archive
++-+Installing+symfony/polyfill-intl-idn+(v1.29.0):+Extracting+archive
++-+Installing+symfony/mime+(v7.0.6):+Extracting+archive
++-+Installing+psr/event-dispatcher+(1.0.0):+Extracting+archive
++-+Installing+symfony/event-dispatcher-contracts+(v3.4.2):+Extracting+archive
++-+Installing+symfony/event-dispatcher+(v7.0.3):+Extracting+archive
++-+Installing+psr/log+(3.0.0):+Extracting+archive
++-+Installing+egulias/email-validator+(4.0.2):+Extracting+archive
++-+Installing+symfony/mailer+(v7.0.6):+Extracting+archive
++-+Installing+symfony/error-handler+(v7.0.6):+Extracting+archive
++-+Installing+symfony/http-kernel+(v7.0.6):+Extracting+archive
++-+Installing+symfony/finder+(v7.0.0):+Extracting+archive
++-+Installing+ramsey/collection+(2.0.0):+Extracting+archive
++-+Installing+brick/math+(0.11.0):+Extracting+archive
++-+Installing+ramsey/uuid+(4.7.5):+Extracting+archive
++-+Installing+psr/simple-cache+(3.0.0):+Extracting+archive
++-+Installing+nunomaduro/termwind+(v2.0.1):+Extracting+archive
++-+Installing+symfony/translation-contracts+(v3.4.2):+Extracting+archive
++-+Installing+symfony/translation+(v7.0.4):+Extracting+archive
++-+Installing+psr/clock+(1.0.0):+Extracting+archive
++-+Installing+symfony/clock+(v7.0.5):+Extracting+archive
++-+Installing+carbonphp/carbon-doctrine-types+(3.2.0):+Extracting+archive
++-+Installing+nesbot/carbon+(3.2.4):+Extracting+archive
++-+Installing+monolog/monolog+(3.6.0):+Extracting+archive
++-+Installing+league/mime-type-detection+(1.15.0):+Extracting+archive
++-+Installing+league/flysystem+(3.27.0):+Extracting+archive
++-+Installing+league/flysystem-local+(3.25.1):+Extracting+archive
++-+Installing+nette/utils+(v4.0.4):+Extracting+archive
++-+Installing+nette/schema+(v1.3.0):+Extracting+archive
++-+Installing+dflydev/dot-access-data+(v3.0.2):+Extracting+archive
++-+Installing+league/config+(v1.2.0):+Extracting+archive
++-+Installing+league/commonmark+(2.4.2):+Extracting+archive
++-+Installing+laravel/serializable-closure+(v1.3.3):+Extracting+archive
++-+Installing+laravel/prompts+(v0.1.18):+Extracting+archive
++-+Installing+laravel/framework+(v11.3.1):+Extracting+archive
++-+Installing+symfony/yaml+(v7.0.3):+Extracting+archive
++-+Installing+laravel/sail+(v1.29.1):+Extracting+archive
++-+Installing+nikic/php-parser+(v5.0.2):+Extracting+archive
++-+Installing+psy/psysh+(v0.12.3):+Extracting+archive
++-+Installing+laravel/tinker+(v2.9.0):+Extracting+archive
++-+Installing+hamcrest/hamcrest-php+(v2.0.1):+Extracting+archive
++-+Installing+mockery/mockery+(1.6.11):+Extracting+archive
++-+Installing+filp/whoops+(2.15.4):+Extracting+archive
++-+Installing+nunomaduro/collision+(v8.1.1):+Extracting+archive
++-+Installing+sebastian/version+(4.0.1):+Extracting+archive
++-+Installing+sebastian/type+(4.0.0):+Extracting+archive
++-+Installing+sebastian/recursion-context+(5.0.0):+Extracting+archive
++-+Installing+sebastian/object-reflector+(3.0.0):+Extracting+archive
++-+Installing+sebastian/object-enumerator+(5.0.0):+Extracting+archive
++-+Installing+sebastian/global-state+(6.0.2):+Extracting+archive
++-+Installing+sebastian/exporter+(5.1.2):+Extracting+archive
++-+Installing+sebastian/environment+(6.1.0):+Extracting+archive
++-+Installing+sebastian/diff+(5.1.1):+Extracting+archive
++-+Installing+sebastian/comparator+(5.0.1):+Extracting+archive
++-+Installing+sebastian/code-unit+(2.0.0):+Extracting+archive
++-+Installing+sebastian/cli-parser+(2.0.1):+Extracting+archive
++-+Installing+phpunit/php-timer+(6.0.0):+Extracting+archive
++-+Installing+phpunit/php-text-template+(3.0.1):+Extracting+archive
++-+Installing+phpunit/php-invoker+(4.0.0):+Extracting+archive
++-+Installing+phpunit/php-file-iterator+(4.1.0):+Extracting+archive
++-+Installing+theseer/tokenizer+(1.2.3):+Extracting+archive
++-+Installing+sebastian/lines-of-code+(2.0.2):+Extracting+archive
++-+Installing+sebastian/complexity+(3.2.0):+Extracting+archive
++-+Installing+sebastian/code-unit-reverse-lookup+(3.0.0):+Extracting+archive
++-+Installing+phpunit/php-code-coverage+(10.1.14):+Extracting+archive
++-+Installing+phar-io/version+(3.2.1):+Extracting+archive
++-+Installing+phar-io/manifest+(2.0.4):+Extracting+archive
++-+Installing+myclabs/deep-copy+(1.11.1):+Extracting+archive
++-+Installing+phpunit/phpunit+(10.5.18):+Extracting+archive
++-+Installing+spatie/backtrace+(1.5.3):+Extracting+archive
++-+Installing+spatie/flare-client-php+(1.4.4):+Extracting+archive
++-+Installing+spatie/ignition+(1.13.2):+Extracting+archive
++-+Installing+spatie/laravel-ignition+(2.5.2):+Extracting+archive
+++0/111+[>---------------------------]+++0%
+++9/111+[==>-------------------------]+++8%
++18/111+[====>-----------------------]++16%
++26/111+[======>---------------------]++23%
++36/111+[=========>------------------]++32%
++44/111+[===========>----------------]++39%
++47/111+[===========>----------------]++42%
++57/111+[==============>-------------]++51%
++66/111+[================>-----------]++59%
++68/111+[=================>----------]++61%
++72/111+[==================>---------]++64%
++80/111+[====================>-------]++72%
++89/111+[======================>-----]++80%
++98/111+[========================>---]++88%
+101/111+[=========================>--]++90%
+108/111+[===========================>]++97%
+110/111+[===========================>]++99%
+111/111+[============================]+100%
53+package+suggestions+were+added+by+new+dependencies,+use+`composer+suggest`+to+see+details.
Generating+optimized+autoload+files
>+Illuminate\Foundation\ComposerScripts::postAutoloadDump
>+@php+artisan+package:discover+--ansi
85+packages+you+are+using+are+looking+for+funding.
Use+the+`composer+fund`+command+to+find+out+more!
>+@php+artisan+vendor:publish+--tag=laravel-assets+--ansi+--force
No+security+vulnerability+advisories+found
>+@php+artisan+key:generate+--ansi
>+@php+-r+"file_exists('database/database.sqlite')+||+touch('database/database.sqlite');"
>+@php+artisan+migrate+--ansi
Script+@php+artisan+migrate+--ansi+handling+the+post-create-project-cmd+event+returned+with+error+code+1

++++at+ChildProcess.exithandler+(node:child_process:407:12)
++++at+ChildProcess.emit+(node:events:527:28)
++++at+maybeClose+(node:internal/child_process:1092:16)
++++at+ChildProcess._handle.onexit+(node:internal/child_process:302:5)

Vemto+2.0.7 win32+10.0.25262 Locale:+ru App+version:+2.0.7&title=(error)+FAILED+to+execute+command:+composer+create-project+laravel/laravel:^11.0+v207_test_b_m

TiagoSilvaPereira commented 6 months ago

Hi @vimitali368 what is your PHP version?

TiagoSilvaPereira commented 6 months ago

@vimitali368 I think it may be a problem with your composer returning status code 1 when finishing the installation. What version of Composer are you currently using?

vimitali368 commented 6 months ago

Hi @vimitali368 what is your PHP version?

php-8.2.3-Win32-vs16-x64

vimitali368 commented 6 months ago

@vimitali368 I think it may be a problem with your composer returning status code 1 when finishing the installation. What version of Composer are you currently using?

Composer version 2.4.1 2022-08-20 11:44:50

vimitali368 commented 6 months ago

I updated Composer to version 2.7.2, but get a similar error when creating a clean project.

vimitali368 commented 6 months ago

I updated PHP to version 8.3.6, but get a similar error when creating a clean project.

vimitali368 commented 6 months ago

So far, I have got out of the situation in this way. After receiving an error in the project folder, I change the parameters in the file.env on MySQL (for some reason, sqlite settings remained when creating, although MySQL was specified). I'm restarting Vemto 2.0.7 and connecting it to the folder as a new project.

TiagoSilvaPereira commented 6 months ago

Hi @vimitali368 did it work now? Could you please give some details on how can I reproduce the error to fix it?

vimitali368 commented 6 months ago

How I solved this problem: installed a clean virtual machine with windows 11. In this machine installed PHP 8.3.6. Then installed Composer 2.7.2. Then installed Vento 2.0.7.

Added in php.ini: included extensions fileinfo, mysqli, pdo_mysql, pdo_sqlite.

Then it turned out to create a new project.

Now I will look for how to cause an error using the Laragon server.

vimitali368 commented 6 months ago

It turned out to solve the problem of creating a new project on Vento 2.0.7 for the Laragon server. Configuration of Laragon server:

TiagoSilvaPereira commented 6 months ago

OK, closing for now as it seems solved

TiagoSilvaPereira commented 6 months ago

Adding more information for anyone who has the same problem: if you are creating a project that uses SQLite, you need to enable the following extensions:

vimitali368 commented 6 months ago

These extensions must be enabled anyway, otherwise the project will not be created. Mysql was selected in my stack, but without enabling sqlite it gave an error.