Skip to content

Cypress CLI passes unsupported flags (--no-sandbox, --smoke-test, --ping) to Node.js/Electron on macOS ARM64 #32519

@amabrouk-tv

Description

@amabrouk-tv

Current behavior

Current behavior
Cypress fails to start because the CLI adds flags that the bundled Node.js/Electron process does not recognize.
Debug output shows Cypress invoking:

cypress:cli smoke test command:
/Users/<user>/Library/Caches/Cypress/15.2.0/Cypress.app/Contents/MacOS/Cypress --no-sandbox --smoke-test --ping=293

These flags are passed to the Node.js/Electron process instead of the browser, causing an immediate error such as:

error: unknown option '--no-sandbox'

This occurs even after removing caches, reinstalling Cypress, and running npx cypress run directly without Nx.

Desired behavior

Cypress should either:
pass --no-sandbox, --smoke-test, and --ping only to the browser (if needed), or
avoid passing unsupported flags to the main Node.js/Electron process during its smoke test verification.

Test code to reproduce

npm init -y
npm install --save-dev [email protected]
DEBUG=cypress:* npx cypress run

The same behavior occurs with Cypress 13.15.0, 14.5.4, and 15.2.0.

Test code to reproduce
This occurs with a brand-new project and no test files.
Simply creating an empty project and running the above steps reproduces the error.

DEBUG=cypress__ npx cypress run - Google Docs.pdf

Cypress Version

13.15.0, 14.5.4, 15.2.0 (all tested)

Debug Logs

Key excerpt:
cypress:cli smoke test command:
/Users/<user>/Library/Caches/Cypress/15.2.0/Cypress.app/Contents/MacOS/Cypress --no-sandbox --smoke-test --ping=293
error: unknown option '--no-sandbox'

Other

OS: macOS 15.6.1 (Apple Silicon / ARM64)
System Node version: 20.x
Bundled Cypress Node version: 22.15.1 (per debug output)
Bundled Electron version: 36.4.0
Happens both with and without Nx integration, so Nx is not involved.
Blocks all UI E2E tests and CI/CD runs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clipkg/electronThis is due to an issue in the packages/electron directorystage: awaiting responsePotential fix was proposed; awaiting response

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions