Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail installation on php 8.2 #536

Closed
myname1614 opened this issue Jan 25, 2023 · 3 comments
Closed

fail installation on php 8.2 #536

myname1614 opened this issue Jan 25, 2023 · 3 comments

Comments

@myname1614
Copy link

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
Copy link

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
Copy link

uaoleg commented May 12, 2023

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

@myname1614
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants