Composer installation errors

Issue

Installing composer packages results in the following error: The checksum verification of the file failed

Reason

The issue happens because of the package checksum in your system cache and checksum on the remote repository are different.

Solution

To resolve this problem run the following command, before rerunning the regular composer command which is throwing the issue.

composer clearcache