cypress: Can't launch the first run: missing dependencies on a fresh install on Mac OS

Current behavior

No issue downloading Cypress. It’s installed with the version 12.14.0.

The issue comes when I need to launch my first run as part of the onboarding.

Trying to launch my first run with the provided line from the onboarding.

npx cypress run --record --key this-is-my-key

I’ve got a link to required dependencies, but there’s nothing related to Mac OS in the article.

Debug logs

It looks like this is your first time using Cypress: 12.14.0


Cypress failed to start.

This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies

Please refer to the error below for more details.

----------

/Users/lionel/Library/Caches/Cypress/12.14.0/Cypress.app/Contents/MacOS/Cypress: bad option: --no-sandbox
/Users/lionel/Library/Caches/Cypress/12.14.0/Cypress.app/Contents/MacOS/Cypress: bad option: --smoke-test
/Users/lionel/Library/Caches/Cypress/12.14.0/Cypress.app/Contents/MacOS/Cypress: bad option: --ping=3

----------

Platform: darwin-arm64 (22.5.0)
Cypress Version: 12.14.0

Cypress Version

12.14.0

Node version

19.1.0

Package Manager

yarn

Package Manager Version

3.3.0

Operating system

Mac

Operating System Version

Ventura 13.4 / darwin-arm64 (22.5.0)

Other

Let me know if I can provide anything else useful.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (12 by maintainers)

Most upvoted comments

@lionelrudaz Ha ha! I finally managed to reproduce your issue. I see this line in your latest screenshot:

Environment variable ELECTRON_RUN_AS_NODE detected, xvfb is not needed

That environment variable has been linked with this behavior in the past - could you try unsetting it and see what happens?

unset ELECTRON_RUN_AS_NODE or see if it’s hiding in an .env file in your project maybe