Integrity checksum failure while installing API Connect toolkit #apiconnect

谁说胖子不能爱 提交于 2019-11-27 04:34:17

问题


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 ?


回答1:


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

then I execute the npm install it works for me.




回答2:


I was getting similar error in Node(v8.1.0) and NPM(5.0.3) Version in Windows 10. Followed following steps to fix this issue. a) Uninstalled npm & Node.js completly. b) Delete "npm" & "npm-cache" folders from "C:\Users\\AppData\Roaming" location. c) Install latest node version through ".msi" d) from node command prompt run "npm i -g npm" e) move to your project location and run "npm install" it should work.




回答3:


I was also getting the same problem but solved by

(1st get older version of npm 4.x.x)

npm install -g npm@4.6.1

next optional in your case if you are building something and in your project package.lock.json is present delete package.lock.json (it means node version 5 is was installed hance some installers (like while deploying app on Heroku app) automatically detect this file and upgrade to version 5)

Now Try npm install it should work

Thank you




回答4:


It Must help You :

Simple soultion:

sudo npm i npm@latest -g



回答5:


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.




回答6:


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.




回答7:


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.




回答8:


try again, add params ' --unsafe-perm=true ' npm install -g plugman --unsafe-perm=true




回答9:


yarn install

worked for a similar error. check here



来源:https://stackoverflow.com/questions/44331813/integrity-checksum-failure-while-installing-api-connect-toolkit-apiconnect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!