Cannot install module with composer on Drupal 10

Created on 27 August 2024, 4 months ago
Updated 29 August 2024, 4 months ago

Problem/Motivation

pc@pc:~/lando-projects/drupal10commerce.localhost$ composer require 'drupal/commerce_otpsp:^3.0'
./composer.json has been updated
Running composer update drupal/commerce_otpsp
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - cheppers/otpsp-client 2.x-dev requires guzzlehttp/guzzle ^6.2.1 -> found guzzlehttp/guzzle[6.2.1, ..., 6.5.x-dev] but the package is fixed to 7.8.2 (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/commerce_otpsp 3.0.0 requires cheppers/otpsp-client 2.x-dev -> satisfiable by cheppers/otpsp-client[2.x-dev].
    - Root composer.json requires drupal/commerce_otpsp ^3.0 -> satisfiable by drupal/commerce_otpsp[3.0.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
pc@pc:~/lando-projects/drupal10commerce.localhost$ composer why guzzlehttp/guzzle
drupal/core             10.3.2 requires guzzlehttp/guzzle (^7.5)   
drupal/core-recommended 10.3.2 requires guzzlehttp/guzzle (~7.8.1) 
drush/drush             12.5.3 requires guzzlehttp/guzzle (^7.0) 

https://github.com/Cheppers/otpsp-client/blob/2.x/composer.json contains "guzzlehttp/guzzle": "^6.2.1", but Drupal 10 uses 7.5 or later from this package.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia kaszarobert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024