【问题标题】:Failure during cypress open after cypress v8.4.0 upgradecypress v8.4.0 升级后cypress open期间失败
【发布时间】:2021-11-11 09:46:24
【问题描述】:

我正在尝试使用 cypress 8.4.0。使用 'npm install cypress --save-dev' 来安装它。但是,安装后,运行任何命令 npx cypress open/run 错误。

It looks like this is your first time using Cypress: 8.4.0

Cypress failed to start.
This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
Please refer to the error below for more details.
----------
Command failed with exit code 2147483651: C:\Users\NEX20UR\AppData\Local\Cypress\Cache\8.4.0\Cypress\Cypress.exe --smoke-test --ping=672
----------

当我运行“npx cypress verify”时,出现以下错误:

Cypress verification timed out.
This command failed with the following output:
C:\Users\NEX20UR\AppData\Local\Cypress\Cache\8.4.0\Cypress\Cypress.exe --smoke-test --ping=466
----------
Command timed out after 30000 milliseconds: C:\Users\NEX20UR\AppData\Local\Cypress\Cache\8.4.0\Cypress\Cypress.exe --smoke-test --ping=466
Timed out

更多细节: 赛普拉斯包版本:8.4.0 赛普拉斯二进制版本:8.4.0 电子版:13.2.0 捆绑节点版本: 14.16.0

PS:我卸载安装了很多次。

【问题讨论】:

    标签: automation cypress


    【解决方案1】:

    从下面提到的位置删除缓存:

    C:\Users\用户名\AppData\Local\Cypress

    然后重新安装 cypress

    npm install --save-dev cypress@8.4.0 -force,

    【讨论】:

    • 也为我工作!我只需要删除整个 Cypress 文件夹,然后重新安装软件包。
    猜你喜欢
    • 2021-04-26
    • 1970-01-01
    • 1970-01-01
    • 2019-04-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多