Bobcares

Installation failed reverting ./composer.json to its original content. magento 2

by | Nov 28, 2022

Let’s fix the error, “installation failed reverting ./composer.json to its original content. magento 2” quickly with this article. At Bobcares, with our Server Management Services, we can handle your server issues.

The “installation failed reverting ./composer.json to its original content. magento 2” error

While trying to install the extension on Magento 2, we may sometimes observe this error:

installation failed reverting ./composer.json to its original content. magento 2

 

 

In this article, we will look into some of the methods to fix the error.

How to fix the error?

1. An easy way to solve this issue by deleting the ./composer/cache folder and then run the below code in the terminal.

composer global update

2. Sometimes the package we are trying to use is not updated to work with the Laravel version we are using. So we’ve to change the package version using composer and run the below code. Then install the package needed.

composer update

3. We can update to the most recent version of laravel/passport for Laravel Framework 5.8 by running the command:

composer require laravel/passport

4. If we continue to see errors, install laravel/passport v7.5.1. We must include the below code to composer.json file:

"require": {
"laravel/passport": "^7.5.1"
},

Then we’ve to run the below command:

composer update

5. If we need to use a version of laravel/passport ^ 8.0, we must get laravel 6 using the code:

composer require laravel/passport

The Laravel version we are using will do the relevant installation.

6. if we see the error again, try removing the existing composer and reinstalling the composer.

7. The error might also occur as a result of miscommunications in auto-load files and cache. To get everything ready, we must dump the auto-load file commands.

composer dump-autoload -o

After that;

php artisan config:clear

[Looking for a solution to another query? We are just a click away.]

Conclusion

The article provides some troubleshooting tips to fix the error, “installation failed reverting ./composer.json to its original content. Magento 2.”

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.