Installing Features module in D10 website via Drush causes drupal/config_update and version compatibilities related errors. See sample below when installing Features via Drush, and the error displayed:
# composer require drupal/features --with-all-dependencies
./composer.json has been updated
Running composer update drupal/features --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- drupal/features[3.13.0, ..., 3.14.0] require drupal/config_update ^1.4 || ^2 -> satisfiable by drupal/config_update[1.4.0, 1.5.0, 1.6.0, 1.7.0].
- drupal/features[3.0.0, ..., 3.8.0] require drupal/core ^8 -> found drupal/core[8.0.0, ..., 8.9.20] but these were not loaded, likely because it con flicts with another require.
- drupal/config_update[1.0.0, ..., 1.6.0] require drupal/core ^8 -> found drupal/core[8.0.0, ..., 8.9.20] but these were not loaded, likely because i t conflicts with another require.
- drupal/features[3.9.0, ..., 3.12.0] require drupal/core ^8.8 || ^9 -> found drupal/core[8.8.0, ..., 8.9.20, 9.0.0, ..., 9.5.11] 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, li kely because it conflicts with another require.
- Root composer.json requires drupal/features * -> satisfiable by drupal/features[3.0.0, ..., 3.14.0].
You can also try re-running composer require with an explicit version constraint, e.g. "composer require drupal/features:*" to figure out if any version is installable, or "composer require drupal/features:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Cause of Issue
“The Drupal 10 version of https://www.drupal.org/project/config_update is in an alpha state so composer by default will not attempt to download it. You will need to set your composer.json’s minimum-stability to a value of “alpha” as per https://getcomposer.org/doc/04-schema.md#minimum-stability or you can require it manually with composer require drupal/config_update:^2.0@alpha”
How to fix drupal/features version require and is satisfiable by drupal/config_update version
- First, run:
composer require drupal/config_update:^2.0@alpha - then, run:
composer require 'drupal/features:^3.14' (this version to date)