Describe how to solve "cached binary not found" error on CI
See original GitHub issueDominic Elm, our ambassador had this problem in branch https://travis-ci.org/d3lm/ngx-drag-to-select/jobs/594782686 where yarn
would not install Cypress binary. The docs in https://docs.cypress.io/guides/references/error-messages.html#A-Cached-Cypress-Binary-Could-not-be-found are less than clear. I think we can put an additional section there telling to:
- upgrade
yarn
ornpm
version to avoid their bugs - trigger clean rebuild by telling CI to clean its cache and rebuild
- run install with
DEBUG=cypress:cli
environment variable to see what is going with the installation - run
npx cypress cache path
andnpx cypress cache list
to see installed binary versions - maybe add
npx cypress install
command to ensure the binary is there, even if thepostinstall
hook is not triggered by some reason
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Test fails because it doesn't find the Cypress binary - GitLab
Cypress cache is located in /root/.cache/Cypress and GitLab won't let you cache anything outside the working directory. To fix the problem ...
Read more >cypress-io/cypress - Gitter
cache /Cypress Properly caching the binary will fix this error and avoid downloading and unzipping Cypress.
Read more >Cypress CI vsts not finding binary - Stack Overflow
According to the error log, it has provided a solution about this. You should run the cypress install command first and then the...
Read more >Troubleshooting | Cypress Documentation
Troubleshooting · Support channels · Isolate the Problem · Download specific Chrome version · Clear Cypress cache · Launching browsers · Allow the...
Read more >JCR BINARY CACHE ERROR DURING MARKFORDELETION
Restarting the Portal Server where the exception is observed will fix the problem for a specific cache entry. Problem summary. The JCR Binary...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i’m getting the same error: `Run cypress-io/github-action@v2 /usr/local/bin/npm ci
added 299 packages, and audited 300 packages in 12s
12 moderate severity vulnerabilities
To address issues that do not require attention, run: npm audit fix
To address all issues (including breaking changes), run: npm audit fix --force
Run
npm audit
for details. /usr/local/bin/npx cypress cache list No cached binary versions were found. /usr/local/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/6.9.1/Cypress/Cypress
Reasons it may be missing:
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
Platform: linux (Ubuntu - 20.04) Cypress Version: 6.9.1 Error: The process ‘/usr/local/bin/npx’ failed with exit code 1 `
+1 here