-
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
https://github.com/mikavilpas/tui-sandbox/actions/runs/11981839398/job/33408806661?pr=155 > /opt/hostedtoolcache/node/20.17.0/x64/bin/npx cypress cache list > No cached binary versions were found. > /opt/hostedtoolcache/node/20.17.0/x64/bin/npx cypress verify > 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.16.0/Cypress/Cypress > > Reasons it may be missing: > > - You're caching 'node_modules' but are not caching this path: /home/runner/.cache/Cypress > - You ran 'npm install' at an earlier build step but did not persist: /home/runner/.cache/Cypress > > Properly caching the binary will fix this error and avoid downloading and unzipping Cypress. > > Alternatively, you can run 'cypress install' to download the binary again. > > https://on.cypress.io/not-installed-ci-error cypress-io/github-action#1246
https://github.com/mikavilpas/tui-sandbox/actions/runs/11981839398/job/33408806661?pr=155 > /opt/hostedtoolcache/node/20.17.0/x64/bin/npx cypress cache list > No cached binary versions were found. > /opt/hostedtoolcache/node/20.17.0/x64/bin/npx cypress verify > 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.16.0/Cypress/Cypress > > Reasons it may be missing: > > - You're caching 'node_modules' but are not caching this path: /home/runner/.cache/Cypress > - You ran 'npm install' at an earlier build step but did not persist: /home/runner/.cache/Cypress > > Properly caching the binary will fix this error and avoid downloading and unzipping Cypress. > > Alternatively, you can run 'cypress install' to download the binary again. > > https://on.cypress.io/not-installed-ci-error 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: