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

Using composer create-project fails with Composer 2 #28

Closed
taisph opened this issue Nov 5, 2020 · 2 comments
Closed

Using composer create-project fails with Composer 2 #28

taisph opened this issue Nov 5, 2020 · 2 comments
Labels
Enhancement New feature or request

Comments

@taisph
Copy link

taisph commented Nov 5, 2020

Feature Request

Q A
New Feature yes

Summary

Support for composer create-project laminas-api-tools/api-tools-skeleton using Composer 2. It currently fails during dependency installation with the error below.

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - laminas/laminas-component-installer 1.1.1 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - laminas/laminas-component-installer[2.1.1, ..., 2.3.2] require php ^7.1 -> your php version (5.6.40) does not satisfy that requirement.
    - Root composer.json requires laminas/laminas-component-installer ^1.1.1 || ^2.1.1 -> satisfiable by laminas/laminas-component-installer[1.1.1, 2.1.1, ..., 2.3.2].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
@taisph taisph added the Enhancement New feature or request label Nov 5, 2020
@rieschl
Copy link

rieschl commented Nov 5, 2020

    - laminas/laminas-component-installer[2.1.1, ..., 2.3.2] require php ^7.1 -> your php version (5.6.40) does not satisfy that requirement.

laminas-component-installer supports composer 2 but requires at least PHP 7.1. you are using 5.6, so just use a current php Version :-)

@taisph
Copy link
Author

taisph commented Nov 5, 2020

laminas-component-installer supports composer 2 but requires at least PHP 7.1. you are using 5.6, so just use a current php Version :-)

🤦‍♂️ Nice catch. I've been jumping back and forth between PHP versions due to maintaining a large legacy stack.

@taisph taisph closed this as completed Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants