I’m reading the Node-Express docs on MDN and when I’m trying to follow the “Installing the express application generator” section, I’m getting an integrity verification failure…
npm ERR! code EINTEGRITY
npm ERR! errno EINTEGRITY
npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/basic-auth: Integrity verification failed for sha512-O4szFc4QkC1BGXEWgqQfDosZZSKLgTv2wU5pDbNoWKPNDwPSN858lGDBGoeom7GaGxny/BR4/Z0qkqkBe6mcUQ== (/home/sakib/.npm/_cacache/content-v2/sha512/3b/8b/3315ce10902d4119711682a41f0e8b1965228b813bf6c14e690db36858a3cd0f03d237ce7c9460c11a87a89bb19a1b19f2fc1478fd9d2a92a9017ba99c51)
Is this something from my end that’s responsible?
Try npx instead.
The MDN articles might not always be totally up-to-date with everything so I’d suggest you always check the official docs.
I actually tried the Express docs first and then MDN, but the problem still persists.
It might be an issue with the npm cache (or caused by network problems). You can try verifying the cache, or if needed clearing it.
npm cache verify
npm cache clear --force