当第一次尝试在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.
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能够运行和执行应用程序的测试?
发布于 2021-02-24 03:52:16
我在这个GitHub issue中找到了适用于我的情况的解决方案
解决方案是重命名Cypress缓存,然后从应用程序目录重新安装Cypress。
在Windows上,Cypress缓存位于\AppData\Local\Cypress\Cache中
npm install cypress发布于 2021-09-08 21:01:13
您还可以修剪缓存,因为这是许多版本的已知问题。
./node_modules/.bin/cypress cache clear然后运行
./node_modules/.bin/cypress install --force这对我很有效
https://stackoverflow.com/questions/66340131
复制相似问题