Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your system is missing the dependency: Xvfb on linux Alpine #29236

Closed
ruggero95 opened this issue Mar 31, 2024 · 2 comments
Closed

Your system is missing the dependency: Xvfb on linux Alpine #29236

ruggero95 opened this issue Mar 31, 2024 · 2 comments
Labels
topic: installation Issue during installation or downloading Cypress type: duplicate This issue or pull request already exists

Comments

@ruggero95
Copy link

ruggero95 commented Mar 31, 2024

Current behavior

When i try to run

npx cypress run --headless --browser electron

it rejects with:

[FAILED] Your system is missing the dependency: Xvfb

(See more log in section log)

since in the prerequisites section there is no mention of linux Alpine i tried to install following lib:

apk add xvfb xvfb-run x11vnc fluxbox xdpyinfo st vim 

but the error keep raising.

There is any possibility to run cypress on alpine images? In my use case i can't run a cypress docker images since i'm into a gitlab pipeline that is already using docker:dind as base image

Debug logs

[STARTED] Task without title.
[FAILED] Your system is missing the dependency: Xvfb
[FAILED] 
[FAILED] Install Xvfb and run Cypress again.
[FAILED] 
[FAILED] Read our documentation on dependencies for more information:
[FAILED] 
[FAILED] https://on.cypress.io/required-dependencies
[FAILED] 
[FAILED] If you are using Docker, we provide containers with all required dependencies installed.
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] Error: spawn Xvfb ENOENT
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] Platform: linux-x64 (Alpine Linux - 3.19.1)
[FAILED] Cypress Version: 13.7.1
Your system is missing the dependency: Xvfb
Install Xvfb and run Cypress again.
Read our documentation on dependencies for more information:
https://on.cypress.io/required-dependencies
If you are using Docker, we provide containers with all required dependencies installed.
----------
Error: spawn Xvfb ENOENT
----------
Platform: linux-x64 (Alpine Linux - 3.19.1)
Cypress Version: 13.7.1

Cypress Version

^13.7.1

Node version

20

Package Manager

npm

Package Manager Version

10.5.0

Operating system

Linux

Operating System Version

Alpine Linux - 3.19.1

Other

No response

@ruggero95 ruggero95 added the topic: installation Issue during installation or downloading Cypress label Mar 31, 2024
@MikeMcC399
Copy link
Contributor

@ruggero95

@MikeMcC399
Copy link
Contributor

@jennifer-shehane jennifer-shehane closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2024
@jennifer-shehane jennifer-shehane added the type: duplicate This issue or pull request already exists label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: installation Issue during installation or downloading Cypress type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants