- Issue created by @joedevdrupal
- 🇺🇸United States joedevdrupal
Is this best practice to do this?
Allow minimum stability:
In your project's composer.json file, you can change the "minimum-stability" setting to allow for more unstable packages. To do this, add the following line:"minimum-stability": "dev",
"prefer-stable": true,After adding this to your composer.json, run the following command:
composer require drupal/commerce:2.36.0
- 🇮🇳India shaika-hassan
Adjusting the minimum stability in Composer worked for me but it can have consequences, as it may allow the installation of packages in less stable states. However, it's a common practice to set the minimum stability to "dev" in development environments, where you might want to pull in the latest changes and development versions.
If you're working on a production environment or a more stable release, you might want to consider carefully the stability settings and the potential risks associated with installing less stable versions of packages.
Setting the minimum stability to "dev" and using "prefer-stable": true in composer.json might resolve the issue you're facing. - 🇬🇧United Kingdom Vali Hutchison
I had the same issue. I resolved it by first installing the latest RC version of drupal/inline_entity_form and then installing Commerce and that worked.
I didn't need to adjust the "minimum-stability" to do this - so it remained as 'stable'
For reference here's my composer commands using the latest versions of each as of today:
composer require 'drupal/inline_entity_form:^3.0@RC' composer require 'drupal/commerce:^2.38'
- 🇩🇪Germany m Sami Antaki
$ php -v PHP 8.2.7 (cli) (built: Jun 9 2023 19:37:27) (NTS)
$ sudo apt install php8.2-bcmath
or
$ composer require 'drupal/commerce:^2.38' --ignore-platform-req=ext-bcmath
- 🇲🇦Morocco dehcar
none of the solution provided worked for me
Fresh windows install
Fresh Uniform Server Zero with all required Php version and Mariadb
Fresh composerinstalled Drupal 11 without a problem
face problem when trying to use the Umami profile, the website throws error 500 and after refresh shows empty/brokenanyhow delete and reinstalled new drupal 11
when i tried to install commerce i face this error, that googling it doesn't yield anything meaningfulC:\server\www\umami>composer require 'drupal/commerce:^3.0@alpha' In VersionParser.php line 526: Could not parse version constraint 3.0@alpha': Invalid version string "3.0@alpha'"
finally what worked for me was switching single quotes to double quotes
this what worked for mecomposer require "drupal/commerce:^3.0@alpha"