
Magento 2.x – The checksum verification of the file failed when running composer install
When we are setting up our project, we can find out this error message related to any of our composer modules saying.
“The checksum verification of the file failed”
That’s in most of the cases a discrepancy with the shasum parameter on our composer.lock file.
One alternative can be uninstalling, and reinstalling the module from scratch. Or, you can remove your composer.lock and then re-running a composer update.
However those previous options might fit with you or can be pretty much risky.
Thus, we have another workaround alternative, and can be removing from your composer.lock file, the shasum and reference, like this:
to this:
After that, you will be able to run composer install without any issues.
Enjoy!