cypress: Cypress does not find chromium-browser on linux

Environment: Ubuntu 16.04, Cypress 2.1.0

Repro steps:

  1. sudo apt-get update && apt-get install chromium-browser
  2. which chromium browser (in my case this output /usr/local/bin/chromium-browser)
  3. ./node_modules/.bin/cypress run --browser chromium-browser
Results: Browser: 'chromium-browser' was not found on your system.

Only electron and chrome are being found. The same is true when running cypress open and seeing which browsers are available in the dropdown.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 9
  • Comments: 18 (5 by maintainers)

Most upvoted comments

I also get the error message:

$ node_modules/.bin/cypress run --browser chromium
Can't run because you've entered an invalid browser.

Browser: 'chromium' was not found on your system.

Available browsers found are: electron

On antergos (arch) linux with chromium installed as chromium:

$ which chromium
/usr/bin/chromium

Cypress package version: 3.1.0 Cypress binary version: 3.1.0 Chromium Version 69.0.3497.100 (Official Build) Arch Linux (64-bit)

I did no further cypress customization so far, no plugins or anything. Just installed it via npm install --save-dev cypress and that’s it.

@udl From DEBUG=cypress:* ./node_modules/.bin/cypress run --browser chromium’s output, it expects to find chromium-browser. So,

# ln -s /usr/bin/chromium /usr/local/bin/chromium-browser
$ ./node_modules/.bin/cypress run --browser chromium

The chromium browser is still not being found by cypress, if the binary is called chromium. Can you add that name to the detection list somehow?

Released in 3.1.5.