I was installing the package when I suddenly received this error.
My laravel project version is 8.83.23 .
This was the command I entered in the terminal.
composer require vladimir-yuldashev/laravel-queue-rabbitmq
I even entered the command with the library version, but it still gives the same error. So I searched the overflow stack but the problem still exists.
CodePudding user response:
Keep the php version to 8 or above.
Then, I would delete the composer.lock
and run composer update
. Usually, the version conflicts can be resolved.
CodePudding user response:
You have 2 errors/issues in the image:
- Your PHP version is
8.0
and it is asking for7.3
or7.4
(that isProblem 2
) Problem 1
is saying thatjenssegers/mongodb
requires the version to be^3.9
(3.9.0 <= version > 4.0.0
), but the package is hardcoded to be3.8.5
on yourcomposer.json
. So, you need to share you composer json, but if you have something like this:
{
"require": {
"jenssegers/mongodb": "3.8.5"
}
}
You will needed to change it to this:
{
"require": {
"jenssegers/mongodb": "^3.8.5"
}
}
But please, share your composer.json