npm - tarball data for material-design-icons seems to be corrupted

Finally, I got this fixed by:

  • Removing node_modules folder
  • Running npm update
  • Running npm install

As far I understand, the npm update should have updated the package.json file, but all dependencies kept the same versions as we had it before.


No need to run npm update (I didn't want to update any packages) or delete the entire node_modules folder. I solved this by

  1. deleting package-lock.json
  2. deleting node_modules\material-design-icons-xxxxxxx
  3. running npm install again

I resolved this with the command: npm cache verify which output:

Cache verified and compressed (C:\Programs\DCPS\npm-cache\_cacache):
Content verified: 1344 (164824963 bytes)
Content garbage-collected: 1 (3491551 bytes)
Index entries: 1522
Finished in 8.187s

The line that stands out to me is: Content garbage-collected: 1 (3491551 bytes)

Does this sort of thing happen because a new version of a package is published to npmjs without a version bump?