我是初级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
我已经尝试删除赛普拉斯并从一开始就使用npm进行安装,但是当我手动下载时,赛普拉斯本身仍在工作,但是当我尝试在控制台或Visual Studio Console中启动它时,它没有打开,写信给我我想念上面的依赖项。
以前有人遇到过这样的问题吗?
答案 0 :(得分:0)
在终端 export NODE_TLS_REJECT_UNAUTHORIZED=0
中运行此命令
然后再次尝试安装。
答案 1 :(得分:0)
我认为它是从以前的版本 3.1.3 更新的。进入缓存并删除所有版本的 cypress,然后重新安装。