Failure during cypress open after cypress v8.3.0 upgrade--exit code 2147483651 in Windows
See original GitHub issueCurrent behavior
After upgrading with cypress using ´npm install --save-dev cypress@8.3.0´ and opening cypress with cli, gives this error.
It looks like this is your first time using Cypress: 8.3.0
Cypress failed to start.
This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
Please refer to the error below for more details.
----------
Command failed with exit code 2147483651: C:\Users\USERID\AppData\Local\Cypress\Cache\8.3.0\Cypress\Cypress.exe --smoke-test --ping=729
----------
Platform: win32 (10.0.19043)
Cypress Version: 8.3.0
Desired behavior
Cypress should open the Test Runner with all available test files.
Test code to reproduce
npm install --save-dev cypress@8.3.0
npm run cypress:open
Cypress Version
8.3.0
Other
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Failure during cypress open after cypress v8.4.0 upgrade
Used 'npm install cypress --save-dev' to install it. However, after installation, running any command npx cypress open/ run end up with error.
Read more >Code Coverage - Cypress Documentation
One answer to those questions is to find out which lines of the application's source code were executed during end-to-end tests. If there...
Read more >Cypress Tips and Tricks - Gleb Bahmutov
If a client-side error happens while the E2E Cypress test is running, we need this additional context: which test is executing, ...
Read more >Fixing Cypress errors part 1: chromium out of memory crashes
After recently working on an existing project that adopted Cypress, ... Cypress team was kind enough to give a very detailed error message ......
Read more >How to solve npm error npm ERR! code ELIFECYCLE
code ELIFECYCLE ” error which is a very common type of error that occurs during npm operation on our command prompt or terminal...
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
Thank you @flotwig. I got it worked by deleting the complete folder and the reinstalled cypress from scratch.
I have tried the above link and could not find the last part after
Image File Execution Options
. Goto Registry editor-> win+R->regedit->HKEY_LOCAL_MACHINE->SOFTWARE->Microsoft->Windows NT->CurrentVersion-> Image File Execution Options ->(Your application name.exe) / Delete te.processhost.exe or delete te.ext or both.So, I deleted this folder
C:\Users\username\AppData\Local\Cypress
completelythen installed cypress using npm install --save-dev cypress@8.3.0 which gave the following error.
then tried with npm install --save-dev cypress@8.3.0 -force,
then npm run cy:o
which throws
Then from here, it’s easy. Run the following code
./node_modules/.bin/cypress install
That’s it, it will download, unzip and finish the installation.
Finally,
npm run cy:o
ornpx cypress open
will launch the test runner.
Can’t reproduce on Win10 x64 using Cypress 8.3.0. Cypress can launch and run tests successfully.
This user had the same issue with a different Electron app and seems to have fixed it by updating security policies on their Windows machine: https://github.com/Microsoft/vscode/issues/15567#issuecomment-291843933
Can you check your “Event Viewer” when you open Cypress and see what it says? There should be an error message when Cypress crashes with this exit code that will provide more exact information.
EDIT:
Also, are you on Windows 32-bit or Windows 64-bit?Never mind, I thought 32-bit might be the issue due to https://github.com/electron/electron/pull/29474 but it does not appear to cause this issue.