Error with install Commerce on Drupal 9
If you have website on Drupal 9, and you wish to install Commerce module, you need to install inline_entity_form module first.
In the used version of the module nucleus, the use of the version of 9 is displayed. However, if you set the second version, the commerce module is likely to give an error:
Problem 1
- drupal/commerce 2.0.0 requires drupal/core ~8.3 -> found drupal/core[8.3.0, ..., 8.9.20] but the package is fixed to 9.5.11 (lock file vs not match. Make sure you list it as an argument for the update command.
- drupal/commerce[2.1.0, ..., 2.4.0] require drupal/core ~8.4 -> found drupal/core[8.4.0, ..., 8.9.20] but the package is fixed to 9.5.11 version does not match. Make sure you list it as an argument for the update command.
- drupal/commerce[2.5.0, ..., 2.9.0] require drupal/core ~8.5 -> found drupal/core[8.5.0, ..., 8.9.20] but the package is fixed to 9.5.11 version does not match. Make sure you list it as an argument for the update command.
- drupal/commerce[2.10.0, ..., 2.14.0] require drupal/core ^8.6 -> found drupal/core[8.6.0, ..., 8.9.20] but the package is fixed to 9.5.1at version does not match. Make sure you list it as an argument for the update command.
- drupal/commerce[2.15.0, ..., 2.16.0] require drupal/core ^8.7 -> found drupal/core[8.7.0, ..., 8.9.20] but the package is fixed to 9.5.1at version does not match. Make sure you list it as an argument for the update command.
- drupal/commerce[2.17.0, ..., 2.18.0] require drupal/inline_entity_form ^1.0-rc1 -> found drupal/inline_entity_form[1.0.0-rc1, ..., 1.0.0json require (^2.0@RC).
- drupal/commerce[2.19.0, ..., 2.28.0] require drupal/inline_entity_form ^1.0-rc6 -> found drupal/inline_entity_form[1.0.0-rc6, ..., 1.0.0json require (^2.0@RC).
- drupal/commerce[2.29.0, ..., 2.36.0] require drupal/inline_entity_form ^1.0@RC -> found drupal/inline_entity_form[1.0.0-rc1, ..., 1.0.0-son require (^2.0@RC).
- Root composer.json requires drupal/commerce * -> satisfiable by drupal/commerce[2.0.0, ..., 2.36.0].
As not paradoxical, but it is necessary to install an older version of Inline_entity_form
composer require drupal/inline_entity_form:^1.0-rc6
And after that Commerce will be install currectly.