EINTEGRITY: npm 5.0 integrity check and modernizr.com dependency

The point of the integrity field is to alert you when something has changed, so if you do not want it to exist, you can disable package-lock.json files in your npmrc. Just set package-lock=false

Note: I am the developer of Modernizr, and spoke with the npm-cli team about this issue. The root cause appears to be the change of the SHA type between npm5 and earlier versions. Nuking the node_modules folder will fix it


  1. Find all outdated packages and update theme:

    npm outdated -g sudo npm i -g outDatedPKG

  2. Upgrade npm to lateste version with:

    sudo npm i -g npm

  3. Delete package-lock.json file.

  4. Delete _cacache directory in ~/.npm:

    npm cache verify

    4.1. Every time i get that error, do steps 2 & 3.

  5. If you still get the error, clear npm's cache:

    npm cache clean --force


I had this same error and I solved it by :

  1. Deleting package-lock.json
  2. Running "npm install"