yiisoft / yii2-app-advanced

Yii 2.0 Advanced Application Template
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
1.66k stars 1.28k forks source link

fail installation on php 8.2 #536

Closed myname1614 closed 1 year ago

myname1614 commented 1 year ago

fail installation

0. php -v
PHP 8.2.0 (cli) (built: Dec 24 2022 21:40:07) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.0, Copyright (c) Zend Technologies
    with Xdebug v3.2.0, Copyright (c) 2002-2022, by Derick Rethans

1. mkdir test1
2. cd test1
3. composer create-project --prefer-dist yiisoft/yii2-app-advanced yii-application
result:

Creating a "yiisoft/yii2-app-advanced" project at "./yii-application"
Info from https://repo.packagist.org: #StandWithUkraine
Installing yiisoft/yii2-app-advanced (2.0.47)
  - Installing yiisoft/yii2-app-advanced (2.0.47): Extracting archive
Created project in /*****mysecretpath****/test1/yii-application
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires codeception/module-filesystem ^2.0 || ^1.1 -> satisfiable by codeception/module-filesystem[2.0.0, 2.0.1, 2.0.2].
    - Conclusion: don't install codeception/codeception 5.0.5 (conflict analysis result)
    - Conclusion: don't install codeception/codeception 5.0.6 (conflict analysis result)
    - Conclusion: don't install codeception/codeception 5.0.7 (conflict analysis result)
    - codeception/module-yii2[1.1.0, ..., 1.1.1] require php >=5.6.0 <8.0 -> your php version (8.2.0) does not satisfy that requirement.
    - codeception/module-yii2[1.1.2, ..., 1.1.3] require php >=5.6.0 <8.1 -> your php version (8.2.0) does not satisfy that requirement.
    - codeception/module-yii2 1.1.4 requires php >=5.6.0 <=8.1 -> your php version (8.2.0) does not satisfy that requirement.
    - codeception/module-yii2 1.1.5 requires php >=5.6.0 <=8.1 | ~8.1.0 -> your php version (8.2.0) does not satisfy that requirement.
    - codeception/module-yii2 1.1.6 requires codeception/codeception ^5.0.0 -> satisfiable by codeception/codeception[5.0.0, ..., 5.0.7].
    - codeception/module-yii2 1.1.7 requires codeception/codeception ^5.0.0-RC6 -> satisfiable by codeception/codeception[5.0.0, ..., 5.0.7].
    - Conclusion: don't install codeception/codeception 5.0.0 (conflict analysis result)
    - Root composer.json requires codeception/module-yii2 ^1.1 -> satisfiable by codeception/module-yii2[1.1.0, ..., 1.1.7].
alxlab-zone66x commented 1 year ago

Yeah I got the same issue on the basic template as well. It looks like the problem is that codeception/module-yii2 needs codeception/codeception v5 but codeception/module-filesystem versions defined in the packgae.json doesn't support codeception v5. You can temporarily fix your installation by modifying the the package.json with:

"codeception/module-filesystem": "^3.0 || ^2.0 || ^1.1",

Version 3 of codeception/module-filesystem adds support for codeception v5.

uaoleg commented 1 year ago

@myname1614 @alxlab-zone66x codeception/module-yii2 has been updated, could you try again please?

myname1614 commented 1 year ago
1.
php -v
PHP 8.2.6 (cli) (built: May 15 2023 15:23:09) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.6, Copyright (c) Zend Technologies

2. 
composer create-project --prefer-dist yiisoft/yii2-app-advanced yii-application

same result as first message in this topic