-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Improve error message when this binary file does not have executable permissions #8397
Comments
I can't see why anything involving the executable would have changed in 5.0.0. Could you run Cypress in debug mode mode and print the entire set of logs here? But ultimately this seems to throw if the executable is not executable based off of running it through this npm module: https://github.com/kevva/executable#readme So, I would suggest double checking the permissions on your node and cypress npm package. |
@jennifer-shehane I resolved it by manually doing Possible enhancement would be to have an error/warning message that instructs user how to clear cache and reinstall. I didn't see a way to manually clear out the cache in the docs, just a way to set alternate cache dir. Like, instead of just saying "there's something wrong with how you installed node" - tell user "try deleting the cache and reinstalling Cypress" or even maybe there could be a way to tell Cypress to install with a |
You can clear cache by running |
Yes - but only if you were to know you needed to :D I think that would be a great message to add in place of the "node was installed with sudo" etc |
The code for this is done in cypress-io/cypress#8438, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
After
npm install cypress@5.0.0
andnpx cypress open
I get: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 ofnpx cypress
. Both commands work if I revert back to Cypress 4.12.1The text was updated successfully, but these errors were encountered: