首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cypress / Visual Studio Code / Cypress无法启动

Cypress / Visual Studio Code / Cypress无法启动
EN

Stack Overflow用户
提问于 2020-09-29 01:28:14
回答 3查看 1.1K关注 0票数 1

我是初级QA测试员,开始使用Cypress和IDE Visual Studio,在更新Cypress 5.2.0后,我得到了一个奇怪的错误,如下所示:

代码语言:javascript
复制
It looks like this is your first time using Cypress: 5.2.0

  ✖  Verifying Cypress can run /Users/viktoriiahanke/Library/Caches/Cypress/5.2.0/Cypress.app
    → Cypress Version: 5.2.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.

----------

Command was killed with SIGKILL (Forced termination): /Users/viktoriiahanke/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/MacOS/Cypress --no-sandbox --smoke-test --ping=563

----------

Platform: darwin (19.6.0)
Cypress Version: 5.2.0

我从一开始就尝试删除Cypress并用npm安装它,但当我手动下载它时,Cypress本身是有效的,但当我试图在控制台或Visual Studio控制台中启动它时,它不能打开,这告诉我我错过了上面的依赖项。

以前有没有人遇到过这样的问题?

EN

回答 3

Stack Overflow用户

发布于 2021-06-07 21:08:18

在终端export NODE_TLS_REJECT_UNAUTHORIZED=0中运行此命令,然后再次尝试安装。

票数 0
EN

Stack Overflow用户

发布于 2021-07-22 04:38:40

我想它是从之前的3.1.3版本更新过来的。进入缓存并删除所有版本的cypress,然后重新安装。

票数 0
EN

Stack Overflow用户

发布于 2021-08-25 11:05:05

也许缺少一些重要的文件夹/文件,比如集成、cypress.json……尝试在终端中运行'npm install‘命令来安装依赖项。

此外,如果您从现有项目开始,也可以(也可以运行npm install命令)。

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

https://stackoverflow.com/questions/64106876

复制
相关文章

相似问题

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