Cypress-无法反序列化V8快照blob [英] Cypress - Failed to deserialize the V8 snapshot blob

查看:22
本文介绍了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.

如何解决此问题,以便Cypress能够运行和执行应用程序的测试?

推荐答案

我在下面的GitHub issue

中找到了适合我的情况的解决方案

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

在Windows上,Cypress缓存位于AppDataLocalCypressCache

npm install cypress

这篇关于Cypress-无法反序列化V8快照blob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆