Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

Cypress - Failed to deserialize the V8 snapshot blob

Writer Sophia Terry

When trying to run Cypress for the first time in Visual Studio code, I receive the following output:

It looks like this is your first time using Cypress: 6.4.0 × Verifying Cypress can run C:\Users\username\AppData\Local\Cypress\Cache\6.4.0\Cypress → Cypress Version: 6.4.0
Cypress failed to start.
This is usually caused by a missing library or dependency.
The error below should indicate which dependency is missing.
If you are using Docker, we provide containers with all required dependencies installed.
----------
#
Fatal error in , line 0
Failed to deserialize the V8 snapshot blob. This can mean that the snapshot blob file is corrupted or missing.

How can this issue be resolved so that Cypress will run and execute the tests for the application?

1

3 Answers

I found the solution that worked in my case in this GitHub issue

The solution was to rename the Cypress cache and then reinstall Cypress from the application directory.

On Windows, the Cypress cache is in \AppData\Local\Cypress\Cache

npm install cypress
3

You can also prune your cache since this is a know problem for many versions.

./node_modules/.bin/cypress cache clear

Then run

./node_modules/.bin/cypress install --force

This worked for me

Lol for me I have run cypress from bad folder :)

npm install cypress works becouse it will create cypress

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy