Home > Back-end >  Installation failed, reverting ./composer.json and ./composer.lock to their original content. larave
Installation failed, reverting ./composer.json and ./composer.lock to their original content. larave

Time:08-02

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.

Error Message

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 for 7.3 or 7.4 (that is Problem 2)
  • Problem 1 is saying that jenssegers/mongodb requires the version to be ^3.9 (3.9.0 <= version > 4.0.0), but the package is hardcoded to be 3.8.5 on your composer.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

  • Related