Figure out if any version is installable, or “composer require predis/predis:^2.1” if you know which you need.

Posted by

Error:

  Problem 1
    - Root composer.json requires laravel/framework ^10.10, found laravel/framework[v10.10.0, ..., v10.48.2] but the package is fixed to v5.5.50 (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
    - Root composer.json requires laravel/tinker ^2.8, found laravel/tinker[v2.8.0, v2.8.1, v2.8.2, v2.9.0] but the package is fixed to v1.0.10 (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 3
    - Root composer.json requires lcobucci/jwt 4.0 (exact version match: 4.0, 4.0.0 or 4.0.0.0), found lcobucci/jwt[4.0.0] but the package is fixed to 3.3.3 (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 4
    - Root composer.json requires paragonie/random_compat ^9.99.1, found paragonie/random_compat[v9.99.99, v9.99.100] but the package is fixed to v2.0.20 (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 5
    - Root composer.json requires mockery/mockery ^1.4.4, found mockery/mockery[1.4.4, ..., 1.6.9] but the package is fixed to 1.3.4 (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 6
    - Root composer.json requires phpunit/phpunit ^10.4.2, found phpunit/phpunit[10.4.2, ..., 10.5.13] but the package is fixed to 6.5.14 (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 7
    - fzaninotto/faker is locked to version v1.9.2 and an update of this package was not requested.
    - fzaninotto/faker v1.9.2 requires php ^5.3.3 || ^7.0 -> your php version (8.2.4) does not satisfy that requirement.
  Problem 8
    - symfony/psr-http-message-bridge v1.2.0 requires php ^7.1 -> your php version (8.2.4) does not satisfy that requirement.
    - laravel/passport v4.0.3 requires symfony/psr-http-message-bridge ~1.0 -> satisfiable by symfony/psr-http-message-bridge[v1.2.0].
    - laravel/passport is locked to version v4.0.3 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 predis/predis:*" to figure out if any version is installable, or "composer require predis/predis:^2.1" if you know which you need.

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

Solution

Step 1: please update your project compose.json for this command

composer update

After that run predis command

composer require predis/predis

So error is solved

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x