How to solve "Your requirements could not be resolved to an installable set of packages" problem?

Viewed 25

when I want to composer install bitwasp/bitcoin using composer require bitwasp/bitcoin, I get the error like this

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires bitwasp/bitcoin ^1.0 -> satisfiable by bitwasp/bitcoin[v1.0.0, v1.0.1, v1.0.2, v1.0.4].
    - bitwasp/bitcoin[v1.0.0, ..., v1.0.4] require mdanter/ecc ^0.5.0 -> found mdanter/ecc[v0.5.0, v0.5.1, v0.5.2] but the package is fixed to v1.0.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.

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

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Does anyone know how to solve it?

0 Answers
Related