-
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
Error npx cypress open #25921
Comments
Right now there doesn't seem to be enough information to reproduce the problem on our end. Unless we receive a reliable reproduction, we'll eventually have to close this issue until we can reproduce it. This does not mean that your issue is not happening - it just means that we do not have a path to move forward. Please provide a reproducible example of the issue you're encountering. Here are some tips for providing a Short, Self Contained, Correct, Example and our own Troubleshooting Cypress guide. |
All my projects were working and all of a sudden they all started with this error. |
@kyhamanaka It sounds like your Cypress App is corrupted. Could you try following these steps to delete your local Cypress cache and re-install?
|
@kyhamanaka try using |
@kyhamanaka this seems like it could be an upstream bug in Electron, I see some old reports of a similar issue on their repo: electron/electron#31675 Can you try 2 things for me please?
Both of these should show a screen similar to this: Let me know if you have success here. E: Could possibly be happening if your local firewall doesn't allow listening on |
**Same error follow the log: If the problem is the firewall what do I need to request so that this error does not occur.** PS C:\Users\kelly.hamanaka\Documents\Projetos\Telemed - QA> npx electron@latest Electron 23.1.1 - Build cross platform desktop apps with JavaScript, HTML, and CSS A path to an Electron app may be specified. It must be one of the following:
Options: Electron 23.1.1 - Build cross platform desktop apps with JavaScript, HTML, and CSS A path to an Electron app may be specified. It must be one of the following:
Options: Electron 21.0.0 - Build cross platform desktop apps with JavaScript, HTML, and CSS
Options: Please reinstall Cypress by running: cypress install Cypress executable not found at: C:\Users\kelly.hamanaka\AppData\Local\Cypress\Cache\12.6.0\Cypress\Cypress.exe Platform: win32-x64 (10.0.19042) ✔ Downloaded Cypress You can now open Cypress by running: node_modules.bin\cypress open https://on.cypress.io/installing-cypress PS C:\Users\kelly.hamanaka\Documents\Projetos\Telemed - QA> npx cypress open ✔ Verified Cypress! C:\Users\kelly.hamanaka\AppData\Local\Cypress\Cache\12.6.0\Cypress Opening Cypress... [8832:0228/164200.808:ERROR:network_service_instance_impl.cc(499)] Network service crashed, restarting service. |
This might be a dumb question, but did you verify that cypress exists at this location? |
I wonder if the language is tripping up where cypress is looking, try setting the run binary env to: https://docs.cypress.io/guides/references/advanced-installation#Run-binary |
view the message below: PS C:\Users\kelly.hamanaka\Documents\Projetos\Versao> npx CYPRESS_RUN_BINARY=C:\Usuários\kelly.hamanaka\AppData\Local\Cypress\Cache\12.6.0\Cypress\Cypress.exe npm ERR! A complete log of this run can be found in: |
This is the log correct: PS C:\Users\kelly.hamanaka\Documents\Projetos\Versao> npx CYPRESS_RUN_BINARY="C:\Usuários\kelly.hamanaka\AppData\Local\Cypress\Cache\12.6.0\Cypress\Cypress.exe" npm ERR! A complete log of this run can be found in: |
the error no longer occurs |
Thank you for your help |
\node_modules.bin\cypress.cmd install npx cypress open -b electron |
@kyhamanaka and everyone else coming here from google. We had a similar issue, cypress simply crashed on startup with a similar message. It seems like cypress has problems when the computer is set to enery saving mode (Windows 11). Perhaps the startup takes to long an cypress decides to kill the electron process. |
This works for me |
Current behavior
Erro ao digitar npx cypress open no meu projeto
[23308:0222/160030.291:ERROR:backend_impl.cc(2020)] Invalid file version or magic
[23308:0222/160118.680:ERROR:network_service_instance_impl.cc(978)] Network service crashed, restarting service.
Desired behavior
No response
Test code to reproduce
Ao digitar o comando npx cypress open
23308:0222/160030.291:ERROR:backend_impl.cc(2020)] Invalid file version or magic
[23308:0222/160118.680:ERROR:network_service_instance_impl.cc(978)] Network service crashed, restarting service.
Cypress Version
10.3.1
Node version
19.7.0
Operating System
windows
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: