Error de versiones com composer
Versiones instaladas:
composer 2.4.4
Drupal 9.4.8
Apache 2.4.54
PHP 8.0.25
Error:
composer require drupal/geocoder
Using version ^4.4 for drupal/geocoder
./composer.json has been updated
Running composer update drupal/geocoder
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- php-http/guzzle7-adapter[dev-master, 1.0.0] require guzzlehttp/guzzle ^7.0 -> found guzzlehttp/guzzle[dev-master, 7.0.0-beta.1, ..., 7.5.x-dev (alias of dev-master)] but the package is fixed to 6.5.8 (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/geocoder 4.4.0 requires php-http/guzzle7-adapter ^1.0 -> satisfiable by php-http/guzzle7-adapter[1.0.0, 1.x-dev (alias of dev-master)].
- php-http/guzzle7-adapter 1.x-dev is an alias of php-http/guzzle7-adapter dev-master and thus requires it to be installed too.
- Root composer.json requires drupal/geocoder ^4.4 -> satisfiable by drupal/geocoder[4.4.0].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require drupal/geocoder:*" to figure out if any version is installable, or "composer require drupal/geocoder:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.`
He probado con -w:
composer require drupal/geocoder -w
Using version ^4.4 for drupal/geocoder
./composer.json has been updated
Running composer update drupal/geocoder --with-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- drupal/core-recommended is locked to version 9.4.8 and an update of this package was not requested.
- drupal/geocoder 4.4.0 requires php-http/guzzle7-adapter ^1.0 -> satisfiable by php-http/guzzle7-adapter[1.0.0, 1.x-dev (alias of dev-master)].
- php-http/guzzle7-adapter 1.x-dev is an alias of php-http/guzzle7-adapter dev-master and thus requires it to be installed too.
- php-http/guzzle7-adapter[dev-master, 1.0.0] require guzzlehttp/guzzle ^7.0 -> satisfiable by guzzlehttp/guzzle[7.0.0-beta.1, ..., 7.5.x-dev (alias of dev-master)].
- guzzlehttp/guzzle 7.5.x-dev is an alias of guzzlehttp/guzzle dev-master and thus requires it to be installed too.
- You can only install one version of a package, so only one of these can be installed: guzzlehttp/guzzle[dev-master, 6.5.8, 6.5.x-dev].
- drupal/core-recommended 9.4.8 requires guzzlehttp/guzzle ~6.5.8 -> satisfiable by guzzlehttp/guzzle[6.5.8, 6.5.x-dev].
- Root composer.json requires drupal/geocoder ^4.4 -> satisfiable by drupal/geocoder[4.4.0].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require drupal/geocoder:*" to figure out if any version is installable, or "composer require drupal/geocoder:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.