Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When we run the Cypress command to open getting error as Error: EACCES: permission denied #28663

Closed
Yeshvk18 opened this issue Jan 9, 2024 · 4 comments

Comments

@Yeshvk18
Copy link

Yeshvk18 commented Jan 9, 2024

Current behavior

Have Properly Installed Node and checked the version as well which is quite perfect

Problem Statement : Unable to Open the Cypress by using cypress commands -node_modules/.bin/cypress open

The version which i am using 13.6.2

Error :

An unexpected error occurred while verifying the Cypress executable.

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.
----------
Error: EACCES: permission denied, open '/Users/yeshwanthvankina/Library/Caches/Cypress/13.6.2/binary_state.json'
----------
Platform: darwin-arm64 (23.2.0)
Cypress Version: 13.6.2

Desired behavior

Basically have clear Setup on Node Modules and did configuration successfully,
Basically After creating the Package.json file post installing the Cypress when we try to Open the cypress it should get launch

Test code to reproduce

package-lock.json

Cypress Version

13.6.2

Node version

v20.2.0

Operating System

MACOS Sonoma 14.2.1

Debug Logs

No response

Other

No response

@oeem1011
Copy link

oeem1011 commented Jan 9, 2024

Same with version 12.7.4

@nathan-nusign
Copy link

Same with 13.6.3 (running on gitlab hosted runners). For what its worth, I started having this issue from one day to the next, with no change to my lock file.

@jennifer-shehane
Copy link
Member

Typically this has to do with some permissions issue with these folders/files.

@catiarodriguescosta
Copy link

catiarodriguescosta commented Jul 18, 2024

sudo npx cypress open worked for me!

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Jul 30, 2024
@jennifer-shehane jennifer-shehane closed this as not planned Won't fix, can't repro, duplicate, stale Sep 4, 2024
@jennifer-shehane jennifer-shehane removed the stage: needs information Not enough info to reproduce the issue label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants