Cypress-未能反序列化V8快照blob
在Visual Studio代码中首次尝试运行Cypress时,我收到以下输出:Cypress-未能反序列化V8快照blob,cypress,Cypress,在Visual Studio代码中首次尝试运行Cypress时,我收到以下输出: 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. Thi
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.
如何解决这个问题,使Cypress能够运行并执行应用程序的测试?我在本例中找到了解决方案 解决方案是重命名Cypress缓存,然后从应用程序目录重新安装Cypress 在Windows上,Cypress缓存位于\AppData\Local\Cypress\cache中
npm install cypress
这很有帮助。我用CTRL-C中止了cypress测试运行,这一定是弄糟了。完整路径是%USERPROFILE%\AppData\Local\cypress\Cache