Tag Archives: reverting ./composer.json and ./composer.lock to their original content.

[Solved] Composer Error: Installation failed, reverting ./composer.json and ./composer.lock to their original content.

1. Error screenshot

2. Delete  composer.lock

3. Execute orders

composer clearcache

Clear cache

4. Update dependency

composer update

(regenerate)  composer.lock

5. You can execute the required commands