'Cypress - Failed to deserialize the V8 snapshot blob

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.

https://on.cypress.io/required-dependencies

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?



Solution 1:[1]

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

Solution 2:[2]

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

Solution 3:[3]

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

npm install cypress works becouse it will create cypress

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Pablo Vahanian
Solution 3 user17219166