Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Commerce
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2021 at 21:42 UTC
Updated:
28 Aug 2023 at 18:00 UTC
Jump to comment: Most recent
Following the description for "installation on existing site" (composer require "drupal/commerce"), I got the following error:
===
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for drupal/commerce ^2.23 -> satisfiable by drupal/commerce[2.23.0].
- drupal/commerce 2.23.0 requires drupal/inline_entity_form ^1.0-rc6 -> satisfiable by drupal/inline_entity_form[1.x-dev, 1.0.0-rc6, 1.0.0-rc7, 1.0.0-rc8] but these conflict with your requirements or minimum-stability.
A similar error appear when installing the dev version.
Comments
Comment #2
kerkux commentedSame here... I think they missed a zero in between the version? ^1.0-rc6 vs 1.0.0-rc6
Comment #3
rszrama commentedWhere are you finding these instructions? And can you not just change your minimum-stability?
Comment #4
mmjvb commentedUse
composer require drupal/inline_entity_form @RCto allow packages not yet Stable. Only for inline_entity_form, use minimum-stability: rc to allow this for any package in your project.It is not about the version constraint, as the message tells you. It is about your project not having minimum-stability set to something that allows anything but Stable. Not having minimum-stability in your composer.json, defaulting to Stable as minimum stability. Which is a good thing in my opinion. Use the other stabilities for selected packages as suggested above.
Comment #5
kerkux commentedHi Ryan, thanks for your answer, I found the instructions here:
https://docs.drupalcommerce.org/commerce2/developer-guide/install-update...
I was actually trying to install it on a fresh Drupal 9 installation.
I was able to install it by following these steps though, but of course it's not what I wanted at the beginning.
Thanks anyway!
Comment #6
rszrama commentedGot it, glad you got it fixed! We're really close to a full release of Inline Entity Form, so that will bring this to an even firmer conclusion as well. 😊
Comment #7
netgeek123 commented#4 worked for me.
Comment #8
morbus iff@rszrama, random FYI:
Drupal 9.1 changes the default minimum stability from "dev" to "stable":
https://www.drupal.org/node/3174472
(Nutshell: any fresh install of Drupal 9.1 with Commerce will fail due to IEF RC.)
Comment #9
mmjvb commentedMinor correction: the default is Stable. Several templates corrected the mistake made by setting it to dev. Definitely not something you should do for your project, assuming it is used for building sites. As mentioned for the moment your project needs to allow for the RC of IEF. Either for IEF only or generally for any extension, awaiting stable release of IEF.
This has nothing to do with Drupal 9.1. It has to do with your OWN project and Commerce using something not Stable yet.
Comment #10
bojanz commented@mmjvb
Your comment added no new information, while your tone leaves something to be desired.
Let's reopen this as a task to modify composer.json and add the @RC suffix to the IEF constraint.
Comment #11
mmjvb commentedHopefully there are others that do understand what I am saying.
For me there is no need to change the constraint. Consider it perfectly acceptable for projects to allow for RC releases of their dependencies. Should be documented though, as adding this module to your project will fail when not allowing them. Obviously, only for those without Stable releases. Would not consider that common knowledge with those interested in this module.
Although evaluating the constraints of the dependencies sounds like a good idea, fail to understand why this would be limited to IEF.
Comment #12
guy_schneerson commentedI ran into the same issue while adding commerce to an existing 9.2 site and easily sorted it out by adding the current version of IEF before adding commerce:
Comment #13
kevinhbruce commentedRE: "We're really close to a full release of Inline Entity Form" - @rszrama
Any word on when a stable release will come out?
Comment #16
jsacksick commentedI updated the composer constraint to 1.0@RC.
Comment #18
londova commentedThe problem still exists - I just start a new installation on Drupal 9.4.0
Comment #19
mmjvb commentedThe problem can not be resolved ! You have conflicting requirements that need to be resolved.
As long as there is no stable release of IEF, your project needs to allow for non-stable releases of it. Currently it is at RC11.
composer require drupal/inline_entity_form @RC --no-update
then your project won't have a problem with installing commerce, at least not relating to IEF.
Comment #20
wxman commentedI just tried it today trying all the tricks but it still won't let me install on a brand new D9 site
Comment #21
mmjvb commentedIn cases like that you need to provide specific information. Preferably in your own support issue. Without that we can't tell what is wrong.
Comment #22
wxman commented@mmjvb
I was finally able to get it installed using:
composer require drupal/inline_entity_form @RC --no-update
Buried in all the error messages was a php extension that was installed but wasn't being seen by the installation. I did a manual install of the php extension then using composer require drupal/inline_entity_form @RC --no-update it all went fine.
Comment #23
Gastonia commentedThank you for those commands, MMJVB, that was very helpful in getting 9.x setup.
On the Commerce Core home page under Versions it mentions that Commerce "Works with Drupal: ^9.2 || ^10." If i follow the same general approach of relaxing the minimum stability and try to install it on Drupal 10, I still get errors about IEF.
IEF doesn't list compatibility with 10, so I'm thinking that the version reference may be a typo? If not, and there is a set of composer commands to get a D10 version up and running, could someone please post those? For me it doesn't matter that it would be a purely dev install at this point, I just want to play around with a Drupal 10 version of Commerce.
Comment #24
mmjvb commentedMy upgrade status report tells me: entity, entity_reference_revisions, inline_entity_form and token, all dependencies of commerce, are not available for D10.
You might want to try the plugin from mglaman: https://github.com/mglaman/composer-drupal-lenient
Forgot to mention drupal/backward_compatibility: https://www.drupal.org/project/backward_compatibility
Comment #25
4goodapp commentedI just Face this issue using Drupal 9.4.5.
#21 did solve the issue for me.
composer require drupal/inline_entity_form @RC --no-updateThen
composer require "drupal/commerce"May be this should be added in the doc until it is fixed.
Comment #26
aryashreep commentedComment#25 worked for me.
Thank you
Comment #27
coaston commentedI just ran into the same issue on 10.1 so this needs to be reopen, however Comment#25 worked for me.