Provando a installare su una versione Drupal 10.0.3 questo modulo
composer require 'drupal/smart_date:^4.0@alpha'
Ho avuto questo errore:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/smart_date ^3.7 -> satisfiable by drupal/smart_date[3.7.0, 3.7.1].
- drupal/smart_date[3.7.0, ..., 3.7.1] require php >=8.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 2
- drupal/core 10.0.3 requires php >=8.1.0 -> your php version (7.4.33) does not satisfy that requirement.
- drupal/pathauto 1.11.0 requires drupal/core ^9.3 || ^10 -> satisfiable by drupal/core[10.0.3].
- drupal/pathauto is locked to version 1.11.0 and an update of this package was not requested.
Sul server ho installato più versiomni di php ma quella di defautl è la 7.4.33
Per risolvere e riuscire ad installare il modulo da composer ho lanciato php8.2 sul binario del composer.
Esempio:
php8.2 /opt/psa/var/modules/composer/composer.phar require 'drupal/smart_date:^4.0@alpha'