shopware / production

Shopware 6 production template
https://shopware.com
177 stars 151 forks source link

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

Closed kris-terziev closed 3 years ago

kris-terziev commented 3 years ago

PHP Version

7.4.20

Shopware Version

6.4.3.0

Expected behaviour

The composer packages to be installed successfully.

Actual behaviour

After running composer install the following output is displayed:

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

  Problem 1
    - The requested package composer-runtime-api ^2.0 exists as composer-runtime-api[1.0.0] but these are rejected by your constraint.
  Problem 2
    - Installation request for shopware/core 6.4.3.0 -> satisfiable by shopware/core[6.4.3.0].
    - shopware/core 6.4.3.0 requires composer-runtime-api ^2.0 -> no matching package found.
  Problem 3
    - shopware/core 6.4.3.0 requires composer-runtime-api ^2.0 -> no matching package found.
    - shopware/storefront 6.4.3.0 requires shopware/core v6.4.3.0 -> satisfiable by shopware/core[6.4.3.0].
    - Installation request for shopware/storefront 6.4.3.0 -> satisfiable by shopware/storefront[6.4.3.0].

How to reproduce

1. git clone --branch=6.4 https://github.com/shopware/production.git shopware
2. cd shopware
3. composer install
shyim commented 3 years ago

Install composer 2.0 or newer

kris-terziev commented 3 years ago

Composer version 2.1.5

shyim commented 3 years ago

The error message says you have composer 1. idk your setup did you run the install with the right binary?

kris-terziev commented 3 years ago

Oh... You are coorect. The composer version was wrong in the container...sigh. Thank you