When trying to install guzzlehttp I get the message that the guzzlehttp/psr7 package is fixed to 2.1.0. What is the best way to solve this problem?

when trying to install guzzlehttp (composer require guzzlehttp/guzzle) on a suitecrm-8 instance I get the following message

Problem 1
    - Root composer.json requires guzzlehttp/guzzle ^7.5 -> satisfiable by guzzlehttp/guzzle[7.5.0, 7.5.x-dev].
    - guzzlehttp/guzzle[7.5.0, ..., 7.5.x-dev] require guzzlehttp/psr7 ^1.9 || ^2.4 -> found guzzlehttp/psr7[dev-master, 1.9.0, 1.x-dev, 2.4.0, ..., 2.4.x-dev (alias of dev-master)] but the package is fixed to 2.1.0 (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.                                                                                                                                                     
  Problem 2                                                                                                                                                           
    - guzzlehttp/guzzle[7.5.0, ..., 7.5.x-dev] require guzzlehttp/psr7 ^1.9 || ^2.4 -> found guzzlehttp/psr7[dev-master, 1.9.0, 1.x-dev, 2.4.0, ..., 2.4.x-dev (alias of dev-master)] but the package is fixed to 2.1.0 (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.                                           
    - codeception/module-phpbrowser 1.0.2 requires guzzlehttp/guzzle ^6.3|^7.0 -> satisfiable by guzzlehttp/guzzle[7.5.0, 7.5.x-dev].
    - codeception/module-phpbrowser is locked to version 1.0.2 and an update of this package was not requested.                                                       

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 guzzlehttp/guzzle:*" to figure out if any version is installable, or "composer require guzzlehttp/guzzle:^2.1" if you know which you need.

I would like to install the stable version of guzzlehttp. In this case, what is the recommended solution?

Thanks in advance

Thanks to this assistance I have managed to identify that codeception/module-phpbrowser It already includes guzzle as a dependency so it is not necessary to install it in order to use it

1 Like