Composer won't install on Drupal 10.1.2

Created on 29 August 2023, 10 months ago
Updated 5 May 2024, about 2 months ago

Problem/Motivation

I tried to install commerce migrate on a clean version of 10.1.2 and it was rejected. Composer said something isn't lining up.

Thanks for any advice.

Here's the error:

composer require 'drupal/commerce_migrate:^4.0@alpha' -W 
Running composer update drupal/commerce_migrate --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/DependencyResolver/Problem.php:366
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/commerce 2.0.0 requires drupal/core ~8.3 -> found drupal/core[8.3.0, ..., 8.9.20] but these were not loaded, likely because it conflicts with another require.
    - drupal/commerce[2.1.0, ..., 2.4.0] require drupal/core ~8.4 -> found drupal/core[8.4.0, ..., 8.9.20] but these were not loaded, likely because it conflicts with another require.
    - drupal/commerce[2.5.0, ..., 2.9.0] require drupal/core ~8.5 -> found drupal/core[8.5.0, ..., 8.9.20] but these were not loaded, likely because it conflicts with another require.
    - drupal/commerce[2.10.0, ..., 2.14.0] require drupal/core ^8.6 -> found drupal/core[8.6.0, ..., 8.9.20] but these were not loaded, likely because it conflicts with another require.
    - drupal/commerce[2.15.0, ..., 2.16.0] require drupal/core ^8.7 -> found drupal/core[8.7.0, ..., 8.9.20] but these were not loaded, likely because it conflicts with another require.
    - drupal/commerce[2.17.0, ..., 2.18.0] require drupal/core ^8.7.7 || ^9 -> found drupal/core[8.7.7, ..., 8.9.20, 9.0.0, ..., 9.5.10] but these were not loaded, likely because it conflicts with another require.
    - drupal/commerce[2.19.0, ..., 2.24.0] require drupal/core ^8.8 || ^9 -> found drupal/core[8.8.0, ..., 8.9.20, 9.0.0, ..., 9.5.10] but these were not loaded, likely because it conflicts with another require.
    - drupal/commerce[2.25.0, ..., 2.28.0] require drupal/core ^8.9 || ^9 -> found drupal/core[8.9.0, ..., 8.9.20, 9.0.0, ..., 9.5.10] but these were not loaded, likely because it conflicts with another require.
    - drupal/commerce[2.29.0, ..., 2.36.0] require drupal/inline_entity_form ^1.0@RC -> found drupal/inline_entity_form[dev-1.x, 1.0.0-alpha1, ..., 1.x-dev (alias of dev-1.x)] but it does not match your minimum-stability.
    - drupal/commerce_migrate 4.0.0-alpha1 requires drupal/commerce ^2.0 -> satisfiable by drupal/commerce[2.0.0, ..., 2.36.0].
    - Root composer.json requires drupal/commerce_migrate ^4.0@alpha -> satisfiable by drupal/commerce_migrate[4.0.0-alpha1].

πŸ’¬ Support request
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bogdog400

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bogdog400
  • πŸ‡ΊπŸ‡ΈUnited States bogdog400

    I was able to get around this by:

    1) Installing drupal-commerce first.

    2) But before that, I had to install php-bcmath with

     sudo apt install php-bcmath
    
    

    3) And then I had to set stability down to "dev" by editing this line of the composer.json file:

    "minimum-stability": "dev",
    

    Just leaving this as a note for anyone who comes along later.

  • Status changed to Fixed 2 months ago
  • πŸ‡³πŸ‡ΏNew Zealand quietone New Zealand

    @bogdog400, thanks for reporting this and for supplying what worked for you.

    The requirement on bcmatch is from the Commerce project. And composer was looking for drupal/commerce_migrate 4.0.0-alpha1 so it makes sense that the stability had to change.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024