Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve "Integrity check failed for 'websocket-driver'" error when installing dependencies?

I tried to upload my Next.js application to Vercel and during the deployment time Vercel threw an error message.

enter image description here

Then I tried to reinstall my yarn package and the installation did not get completed my command terminal threw the same error about websocket.

enter image description here

How to resolve the error?

like image 473
Usama Abdul Razzaq Avatar asked Feb 03 '26 00:02

Usama Abdul Razzaq


2 Answers

You can try clearing the cache and updating the checksums in the yarn.lock file by running the following commands.

yarn cache clean
yarn install --update-checksums

You could also try deleting the yarn.lock file altogether and re-run yarn install.

like image 132
juliomalves Avatar answered Feb 05 '26 12:02

juliomalves


check if there's anything cached in ~/.config/yarn.

rm -rf ~/.config/yarn solved my problem.

like image 27
0.618 Avatar answered Feb 05 '26 14:02

0.618



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!