cypress: Failed to deserialize the V8 snapshot blob error during 'run' and 'open in Windows - 3.5.0

Current behavior:

cypress run and cypress open, yield the following error after upgrading to 3.5.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.

----------
cypress open
It looks like this is your first time using Cypress: 3.5.0

#
# Fatal error in , line 0
# Failed to deserialize the V8 snapshot blob. This can mean that the 
snapshot blob file is corrupted or missing.
#
#
#
#FailureMessage Object: 0000003A7AAFEB88

----------

Platform: win32 (10.0.19002)
Cypress Version: 3.5.0
error Command failed with exit code 1.

image

Desired behavior:

Regain the ability to run tests and open the Cypress window.

Steps to reproduce: (app code and test code)

Run cypress run or cypress open on Windows 10 after upgrading to 3.5.0 via yarn upgrade cypress.

Versions

  • Cypress 3.5.0
  • Node 12.13.0
  • Windows 10 Version 1903, Build 19002.1002

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 35 (3 by maintainers)

Most upvoted comments

npx cypress install --force

Fixed it completely.

I also got the “Failed to deserialize the V8 snapshot blob”. Renaming the Cyrpress cache folder and reinstalling with npx cypress install resolved the problem though. Previously I upgrade the Vue CLI and had multiple errors here and interrupts. In my case, I think Cypress simply wasn’t install correctly. Just for information for your troubleshooting.

On Windows, it’s in <user>\AppData\Local\Cypress\Cache<version>

for me yarn run cypress install --force has worked well. to force the installation.

Joining the npx cypress install --force bandwagon, problem solved for me.

Worked for me too! Didn’t have to clear the cache though, only force reinstall.

cypress cache clear && cypress install fixed this issue in my case while upgrading from v4.1.0 to v4.5.0

Joining npx cypress install --force gang! Fixed it.

Also happened to me today on a new install. FYI: on local machine, Windows 10, Cypress 4.4.0, using yarn. The above fix worked: yarn run cypress install --force

We’ll be closing this issue as resolved. Please follow the workaround above for clearing cache during install if you see this error.

I just had this happen to me because I accidentally closed out before installation had completed.

Also happened to me installing 8.2.0 and only solved with yarn run cypress install --force Tks @trevithj

Tried npx cypress install --force this was taking forever, not sure if it was doing anything. As others have pointed out the fix for me was navigating C:\Users*****\AppData\Local\Cypress renaming the Cache folder followed by running npx cypress install.

with yarn:

  1. remove cypress from node_modules
  2. yarn install --check-files

I also got the “Failed to deserialize the V8 snapshot blob”. Renaming the Cyrpress cache folder and reinstalling with npx cypress install resolved the problem though. Previously I upgrade the Vue CLI and had multiple errors here and interrupts. In my case, I think Cypress simply wasn’t install correctly. Just for information for your troubleshooting.

This fix worked for me!