johnbillion / ext

WP-CLI command which checks the existence of PHP extensions needed to run WordPress.
71 stars 3 forks source link

Install fails due to WP-CLI version constraints in composer.json #6

Closed jasonsbarr closed 5 years ago

jasonsbarr commented 5 years ago

Error message:

Loading composer repositories with package information
Updating dependencies
Resolving dependencies through SAT

Dependency resolution completed in 0.010 seconds
Your requirements could not be resolved to an installable set of packages.
Problem 1
    - Conclusion: remove wp-cli/wp-cli 2.0.1
    - johnbillion/ext dev-master requires wp-cli/wp-cli ^1.1.0 -> satisfiable by wp-cli/wp-cli[v1.1.0, v1.2.0, v1.2.1, v1.3.0, v1.4.0, v1.4.1, v1.5.0, v1.5.1].
    - johnbillion/ext dev-master requires wp-cli/wp-cli ^1.1.0 -> satisfiable by wp-cli/wp-cli[v1.1.0, v1.2.0, v1.2.1, v1.3.0, v1.4.0, v1.4.1, v1.5.0, v1.5.1].
    - Can only install one of: wp-cli/wp-cli[v2.0.1, v1.1.0].
    - Can only install one of: wp-cli/wp-cli[v2.0.1, v1.2.0].
    - Can only install one of: wp-cli/wp-cli[v2.0.1, v1.2.1].
    - Can only install one of: wp-cli/wp-cli[v2.0.1, v1.3.0].
    - Can only install one of: wp-cli/wp-cli[v2.0.1, v1.4.0].
    - Can only install one of: wp-cli/wp-cli[v2.0.1, v1.4.1].
    - Can only install one of: wp-cli/wp-cli[v2.0.1, v1.5.0].
    - Can only install one of: wp-cli/wp-cli[v2.0.1, v1.5.1].
    - Installation request for wp-cli/wp-cli 2.0.1 -> satisfiable by wp-cli/wp-cli[2.0.1].
    - Installation request for johnbillion/ext dev-master -> satisfiable by johnbillion/ext[dev-master].
Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
---
Error: Package installation failed (Composer return code 2).
Reverted composer.json.
johnbillion commented 5 years ago

Cheers, I'll get it updated.

ronilaukkarinen commented 5 years ago

Same here. Is there alternative/manual way to install this?

johnbillion commented 5 years ago

Fixed in 2.0.

ronilaukkarinen commented 5 years ago

Oh, I had latest wp-cli in the project folder, but older in ~/.wp-cli. My bad, it works now. Thanks!