Push to Prodution Channel fails with npm ERR! code EINTEGRITY

When i try to to push my code to production channel on ionic Pro fails with the error “npm ERR! code EINTEGRITY … integrity checksum failed when using sha512: wanted sha512 …”

Is there a way to flush the npm cache on ionic pro or to change the build script?

1 Like

Have you found any solution?

Solution for me was to check my npm registry: npm get registry
I was using my workplace npm registry via artifactory. Once I set it to the public registry, committed and run the web build it was successful.

// run
npm config set registry https://registry.npmjs.com/

I deleted node_modules and package-log.json and ran a fresh npm install. Committed lock file, ran the web build and success.