dipgirl
dipgirl

Reputation: 690

How to solve problem conflicts with your root composer.json require?

when I want to composer install srmklive/paypal using composer require srmklive/paypal, I get the error like belok:

 Problem 1
    - srmklive/paypal[v3.0, ..., 3.0.10] require guzzlehttp/guzzle ~7.0 -> found guzzlehttp/guzzle[7.0.0, ..., 7.4.1] but it conflicts with your root composer.json require (^6.3).
    - Root composer.json requires srmklive/paypal ^3.0 -> satisfiable by srmklive/paypal[v3.0, ..., 3.0.10].

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

Does anyone know how to solve it?

Upvotes: 4

Views: 19266

Answers (2)

Prince Kumar
Prince Kumar

Reputation: 146

We have resolved this issue with the below commands.

Update the "guzzlehttp/guzzle": "^6.3|^7.0.1",

Or last you can try with all dependencies option

composer require guzzlehttp/guzzle --with-all-dependencies

Thanks

Upvotes: -1

Tipu Sultan Eiko
Tipu Sultan Eiko

Reputation: 774

change in composer.json

"guzzlehttp/guzzle": "^6.3|^7.0.1",

Then update composer

Upvotes: 7

Related Questions