Cypress-无法反序列化V8快照blob
首次尝试在 Visual Studio 代码中运行 Cypress 时,我收到以下输出:
It looks like this is your first time using Cypress: 6.4.0
× Verifying Cypress can run C:UsersusernameAppDataLocalCypressCache6.4.0Cypress
? 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.
如何解决这个问题,以便赛普拉斯运行并执行应用程序的测试?
回答
我在这个GitHub 问题中找到了适用于我的案例的解决方案
解决方案是重命名 Cypress 缓存,然后从应用程序目录重新安装 Cypress。
On Windows, the Cypress cache is in AppDataLocalCypressCache
npm install cypress
- That helped. I had aborted a cypress test-run with CTRL-C, which must have messed it up.
- The full path is %USERPROFILE%AppDataLocalCypressCache