无法在Ubuntu 18.04上运行Cypress [英] Cannot run Cypress on Ubuntu 18.04
问题描述
我试图在Ubuntu 18.04上运行Cypress,并不断出现相同的错误.还有其他人遇到在Ubuntu 18.04上运行Cypress的问题吗?
I am trying to run Cypress on Ubuntu 18.04 and keep getting the same error. Has anyone else ran into problems running Cypress on Ubuntu 18.04?
柏树3.8.2Ubuntu 18.04
Cypress 3.8.2 Ubuntu 18.04
推荐答案
This issue has been addressed here: Cypress verify command failing #6184
我尝试了建议的解决方法,但问题却消失了.
I tried the suggested work around and my problems went away.
Xvfb :1 -screen 0 1280x800x24 &
export DISPLAY=:1
npx cypress verify
npx cypress run
Gitter饲料Gleb Bahmutov解释
In the gitter feed Gleb Bahmutov explained
看来Ubuntu 18.04 XVFB的行为很奇怪,但未设置默认屏幕,我们在cypress-io/cypress#6184中添加了显式设置但尚未发布."
"It seems Ubuntu 18.04 XVFB has a weird behavior where it does not set default screen, we have added explicit set in cypress-io/cypress#6184 but it has not yet been released."
这篇关于无法在Ubuntu 18.04上运行Cypress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!