question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress does not find chromium-browser on linux

See original GitHub issue

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.

Issue Analytics

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

github_iconTop GitHub Comments

6reactions
udlcommented, Oct 16, 2018

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.

4reactions
x-yuricommented, Jan 12, 2019

@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
Read more comments on GitHub >

github_iconTop Results From Across the Web

cypress can not find Chromium Browser in the CI to launch
I`m trying launching my Browser in the ci using Chromium but it does not work: It tell my that the Chromium does not...
Read more >
Launching Browsers | Cypress Documentation
The Chrome browser is evergreen - meaning it will automatically update itself, sometimes causing a breaking change in your automated tests. We host...
Read more >
Cypress 5.0 - Unable to find installed browsers - Stack Overflow
Now I can run the cypess open command without browser tag and should see the chrome browser added in browser dropdown. npx cypress...
Read more >
Use Chromium Dev browser to run Cypress tests - YouTube
Your browser can't play this video. ... Shows how to download Chromium browser from https://on. cypress.io/ chromium -downloads and run Cypress ...
Read more >
cypress-io/cypress - Gitter
Browser : 'chrome' was not found on your system. ... cypress:launcher browser chrome not installed +369ms cypress:launcher checking one browser chromium +3ms ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found