Integrity checksum failure while installing API Connect toolkit #apiconnect

Viewed 31742

I'm getting the following error while installing API Connect toolkit:

sha1-UhOHSxsj+deaxi0QbjKXDirzcn8= integrity checksum failed when using sha1: wanted sha1-UhOHSxsj+deaxi0QbjKXDirzcn8= but got sha1-208ds/bfbkHrcce1kMfz2sLUPhs=. (627039 bytes)

Node version:- 6.10.3 NPM version:- 5.0.1

I'm trying to install API Connect toolkit on a windows 7 workstation (64-bit) using npm install -g apiconnect command.

What could be the next steps for fixing this issue ?

9 Answers

I encountered this issue, fortunately, I find the solution in Github:

this is caused by the package-lock.json,

so I delete it: rm package-lock.json

enter image description here

then I execute the npm install it works for me.

Go to project dir and enter the following commands in fx powershell or cmd.

rm ./package-lock.json
npm cache clear --force
npm install -g npm

That worked for me.

As of npm 5, you can use npm-cache to verify the contents of the cache folder, e.g.:

npm cache verify

Then re-run the install again.

There are multiple solutions to this problem. I've encountered it many times and always different things helped me.

A. At first try cleaning the cache: npm cache clean --force then npm install

B. Second you can try npm install --update-binary

C. Third option is to try A and delete node_modules folder and then npm install

D. Fourth option is to uninstall nodejs reboot and reinstall and then try npm install

E. Last of my options which worked for me was to delete npm and npm-cache folders in Users%username%\AppData\Roaming and running npm install

You can try also other combinations usually its best to always do A and clean the cache at least or delete the node_modules folder.

It Must help You :

Simple soultion:

sudo npm i npm@latest -g
Related