Drupal 9 - Installation may require expicitly setting minimum-stability
As per the documentation at https://docs.civicrm.org/installation/en/latest/drupal8/ we need a clean drupal 8 or 9 and we can do a composer install.
Steps to replicate:
-
Download composer.json and composer.lock from https://github.com/drupal/recommended-project/tree/9.1.x this gives latest drupal 9 dev and do a composer install or download and install drupal. Now we have a clean drupal 9.1 installed
-
cd /var/www/d8.example.org
-
composer config extra.enable-patching true
-
composer require civicrm/civicrm-asset-plugin:'~1.1'
-
composer require civicrm/civicrm-{core,packages,drupal-8}
Steps 2 to 5 are from the documentation.
Expected result: Civicrm packages are installed
Observed result:
Using version ^5.34 for civicrm/civicrm-core
Using version ^5.34 for civicrm/civicrm-packages
Using version ^5.34 for civicrm/civicrm-drupal-8
./composer.json has been updated
Running composer update civicrm/civicrm-core civicrm/civicrm-packages civicrm/civicrm-drupal-8
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires civicrm/civicrm-core ^5.34 -> satisfiable by civicrm/civicrm-core[5.34.0].
- civicrm/civicrm-core 5.34.0 requires pear/validate_finance_creditcard dev-master -> found pear/validate_finance_creditcard[dev-master] but it does not match your minimum-stability.
Problem 2
- civicrm/civicrm-core 5.34.0 requires pear/validate_finance_creditcard dev-master -> found pear/validate_finance_creditcard[dev-master] but it does not match your minimum-stability.
- civicrm/civicrm-drupal-8 5.34.0 requires civicrm/civicrm-core >=5.21.0 -> satisfiable by civicrm/civicrm-core[5.34.0].
- Root composer.json requires civicrm/civicrm-drupal-8 ^5.34 -> satisfiable by civicrm/civicrm-drupal-8[5.34.0].
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
I think setting proper version for validate_finance_creditcard instead of dev-master in the composer.json file of civicrm should fix it, but as it is composer install I can't test this.
Environment details: php: 7.4 (I know this is not completely supported but installation should go through)
mysql: 5.7
Operating system: Tried on Ubuntu and Centos.
composer version: 2.0.8
Am I missing something in the installation?
Thanks, Sadashiv.