Tag Archives: cnpm

Error code integrity is reported when installing cnpm in NPM

npm installation cnpm error code EINTEGRITY
error display

PS C:\Users\by\Desktop\element_ui_demo> npm install –g/. npm
npm ERR! EINTEGRITY code
npm ERR! sha512-DowXzQwtSWDtbAjuWecuEiismR0VdNEYaL3VxNTYTdW6AGkYxfGk9LUZ/rt6etEyiH4IEk95HkJeGfXE5Rz9xQ== integrity checksum failed when using sha512: wanted sha512-DowXzQwtSWDtbAjuWecuEiismR0VdNEYaL3VxNTYTdW6AGkYxfGk9LUZ/rt6etEyiH4IEk95HkJeGG4But got sha512-tHlXGeHDDxcwcfwJc/dRDLcLCtuq5y9ATPgiG9tkyLom4u9Yqc+nRbk0JI7c2biglh8jwsUIseBIivimVFmZQg==. ( 5156776 bytes)

because npm version has been detected

If there is a package-lock.json file, it will be 21024;

2.Administrator privileged to cmd

3.executnpm cache clean –force

After

4.npm install -g npm

5npm -vCheck version