我是初级QA测试员,开始使用Cypress和IDE Visual Studio,在更新Cypress 5.2.0后,我得到了一个奇怪的错误,如下所示:
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控制台中启动它时,它不能打开,这告诉我我错过了上面的依赖项。
以前有没有人遇到过这样的问题?
发布于 2021-06-07 21:08:18
在终端export NODE_TLS_REJECT_UNAUTHORIZED=0中运行此命令,然后再次尝试安装。
发布于 2021-07-22 04:38:40
我想它是从之前的3.1.3版本更新过来的。进入缓存并删除所有版本的cypress,然后重新安装。
发布于 2021-08-25 11:05:05
也许缺少一些重要的文件夹/文件,比如集成、cypress.json……尝试在终端中运行'npm install‘命令来安装依赖项。
此外,如果您从现有项目开始,也可以(也可以运行npm install命令)。
https://stackoverflow.com/questions/64106876
复制相似问题