If you getting error like
installation failed reverting ./composer.json to its original content
Solution: There is following below command need to be run
Composer update
Running format this command
Once command done, Finally, issue will be resolved.