https://cypress.io logo
I get browser not supported when I "npm run test"
# i-need-help
l
I am new to react and I am writing tests for my application, but when i enter the command "npm run test" i get this message
Copy code
> client@0.0.0 test
> cypress run --browser chrome --e2e

Can't run because you've entered an invalid browser name.

Browser: chrome was not found on your system or is not supported by Cypress.

Cypress supports the following browsers:
 - electron
 - chrome
 - chromium
 - chrome:canary
 - edge
 - firefox

You can also use a custom browser: https://on.cypress.io/customize-browsers

Available browsers found on your system are:
 - electron
Can't run because you've entered an invalid browser name.

Browser: chrome was not found on your system or is not supported by Cypress.

Cypress supports the following browsers:
 - electron
 - chrome
 - chromium
 - chrome:canary
 - edge
 - firefox

You can also use a custom browser: https://on.cypress.io/customize-browsers

Available browsers found on your system are:
 - electron
this is weird because i have chrome installed and it is up to date, cypress is also up to date
w
What operating system are you using? Also I grabbed this from an old issue which might be worth checking: Does it work if you manually specify the path to your browser? ex: cypress open --browser "C:\path\to\chrome.exe"
e
Did you try --chrome?
6 Views