admin
10 March 2024
Versione Drupal
Provando a installare un modulo drupal usando il composer, ottenevo questi messaggi di errore:
Problem 1
- drupal/health_check is locked to version 3.0.0 and an update of this package was not requested.
- drupal/health_check 3.0.0 requires php ^8.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 2
- drupal/metatag is locked to version 2.0.0 and an update of this package was not requested.
- drupal/metatag 2.0.0 requires php >=8.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 3
- drupal/schema_metatag is locked to version 3.0.1 and an update of this package was not requested.
- drupal/schema_metatag 3.0.1 requires php >=8.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 4
- drupal/webform is locked to version 6.2.2 and an update of this package was not requested.
- drupal/webform 6.2.2 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
...
Per risolvere ho usato il comando
composer config platform.php 8.2.0
Con questo comando è possibile sostituire la versione di php con quella in uso.