-
Notifications
You must be signed in to change notification settings - Fork 347
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
The cypress npm package is installed, but the Cypress binary is missing. #1246
Comments
It looks like you may be using pnpm workspaces. Please note that there is no native support in the action for this (see #1144). You can check the example in the README https://github.com/cypress-io/github-action/blob/master/README.md#pnpm-workspaces for a way to work around this, by splitting dependency installation and running Cypress. You are using I could not see the root cause of your problem from the information you provided however, so if you want to dig in to what is happening, then you would need to enable debugging (see https://github.com/cypress-io/github-action/blob/master/README.md#debugging) probably also with If you are able to provide a public online repro of this issue, we could also look at it in parallel. |
@MikeMcC399, thank you, I've tried a few solutions suggested in similar issues related to pnpm workspaces and got it fixed by using the solution of adding a step for caching the
|
It's good to hear you were able to solve your issue! Thanks for your feedback! |
Cypress recently has released a new version, so my all my jobs failed again, as the runner installs the latest version 😞 Cypress version locked in the project:
My workflow steps:
Job logs:
|
I'm sorry to hear that you are hit with the same issue again. Looking at the information provided I don't see the reason for your problem, so I suggest again to enable debugging (see https://github.com/cypress-io/github-action/blob/master/README.md#debugging) also with Once again also, if you are able to provide a public online repro of this issue, we could also look at it in parallel. |
I'm also hitting the same issue and had to downgrade from 6.7.5 to 6.7.4 to make it work. Since the project is open source, it might be helpful if you want to debug the problem. I got this error in the following PR: usecannon/cannon#1355. Thank you, and I hope this helps! Let me know if I can provide more information to resolve this. |
|
The logs I posted above are with enabled debugging.
I'll try to create a sample public repo similar to the one I'm getting the issue. For now I fixed the issue with the following workaround:
|
|
The ci setup needs to work around cypress-io/github-action#1246
The ci setup needs to work around cypress-io/github-action#1246
This happens whenever a new version of Cypress is released.
I have a locked version 13.14.0 in package.json, but the runner installs the latest version and as a result Cypress fails with the error message:
The cypress npm package is installed, but the Cypress binary is missing.
We expected the binary to be installed here: /home/runner/.cache/Cypress/13.14.0/Cypress/Cypress
My workflow steps:
The text was updated successfully, but these errors were encountered: