Skip to content

Improve error message when this binary file does not have executable permissions #8397

@kpittman-securus

Description

@kpittman-securus

Current behavior:

After npm install cypress@5.0.0 and npx cypress open I get:

Cypress cannot run because this binary file does not have executable permissions here:

/Users/me/Library/Caches/Cypress/5.0.0/Cypress.app/Contents/MacOS/Cypress

Reasons this may happen:

- node was installed as 'root' or with 'sudo'
- the cypress npm package as 'root' or with 'sudo'

Please check that you have the appropriate user permissions.

----------

Platform: darwin (19.6.0)
Cypress Version: 5.0.0

Desired behavior:

Cypress should open - works fine with version 4.12

Test code to reproduce

Cypress installed via NPM

Versions

Cypress: 5.0.0
OS: MacOS Catalina 10.15.16
Node: Tested on 12.18.2 and 14.8.0 using NVM

The same thing happens if I use ./node_modules/cypress/bin/cypress open instead of npx cypress. Both commands work if I revert back to Cypress 4.12.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions