Installation error, dependencies in Drupal 10

Created on 13 October 2023, about 1 year ago
Updated 20 February 2024, 9 months ago

Problem/Motivation

Trying to install Features module in Drupal 10 using composer, I get dependency errors as follows:

   Problem 1
    - drupal/config_update[1.4.0, ..., 1.6.0] require drupal/core ^8 -> found drupal/core[8.0.0, ..., 8.9.20] but the package is fixed to 10.1.5 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - drupal/config_update 1.7.0 requires drupal/core ^8 || ^9 -> found drupal/core[8.0.0, ..., 8.9.20, 9.0.0, ..., 9.5.11] but the package is fixed to 10.1.5 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - drupal/features 3.13.0 requires drupal/config_update ^1.4 || ^2 -> satisfiable by drupal/config_update[1.4.0, 1.5.0, 1.6.0, 1.7.0].
    - Root composer.json requires drupal/features ^3.13 -> satisfiable by drupal/features[3.13.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

When I repeat the command using the -W option I get the following error:

Problem 1
    - drupal/config_update[1.4.0, ..., 1.6.0] require drupal/core ^8 -> found drupal/core[8.0.0, ..., 8.9.20] but these were not loaded, likely because it conflicts with another require.
    - drupal/config_update 1.7.0 requires drupal/core ^8 || ^9 -> found drupal/core[8.0.0, ..., 8.9.20, 9.0.0, ..., 9.5.11] but these were not loaded, likely because it conflicts with another require.
    - drupal/features 3.13.0 requires drupal/config_update ^1.4 || ^2 -> satisfiable by drupal/config_update[1.4.0, 1.5.0, 1.6.0, 1.7.0].
    - Root composer.json requires drupal/features ^3.13 -> satisfiable by drupal/features[3.13.0].

I am aiming to install Features in order to import Features created in Drupal 7.

Steps to reproduce

I am using a ddev instance of Drupal 10. SSH into virtual web server and issue composer command: composer require 'drupal/features:^3.13'

πŸ’¬ Support request
Status

Fixed

Version

3.13

Component

Dependencies

Created by

πŸ‡¬πŸ‡§United Kingdom mike-kelly

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024