首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Cypress无法反序列化V8快照blob

Cypress无法反序列化V8快照blob
EN

Stack Overflow用户
提问于 2021-02-24 03:52:16
回答 2查看 6.3K关注 0票数 5

当第一次尝试在Visual Studio代码中运行Cypress时,我收到以下输出:

代码语言:javascript
运行
复制
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能够运行和执行应用程序的测试?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2021-02-24 03:52:16

我在这个GitHub issue中找到了适用于我的情况的解决方案

解决方案是重命名Cypress缓存,然后从应用程序目录重新安装Cypress。

在Windows上,Cypress缓存位于\AppData\Local\Cypress\Cache中

代码语言:javascript
运行
复制
npm install cypress
票数 7
EN

Stack Overflow用户

发布于 2021-09-08 21:01:13

您还可以修剪缓存,因为这是许多版本的已知问题。

代码语言:javascript
运行
复制
./node_modules/.bin/cypress cache clear

然后运行

代码语言:javascript
运行
复制
./node_modules/.bin/cypress install --force

这对我很有效

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66340131

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档