Integrity checksum failure while installing API Connect toolkit #apiconnect

做~自己de王妃 提交于 2019-11-27 22:16:51
aircraft

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.

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.

hmharsh3

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

It Must help You :

Simple soultion:

sudo npm i npm@latest -g

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.

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.

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.

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

Jose Kj
yarn install

worked for a similar error. check here

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