question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failure during cypress open after cypress v8.3.0 upgrade--exit code 2147483651 in Windows

See original GitHub issue

Current 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:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
dhamo-pkcommented, Aug 18, 2021

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 completely

then installed cypress using npm install --save-dev cypress@8.3.0 which gave the following error.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: cypress-real-events@1.5.0
npm ERR! Found: cypress@8.3.0
npm ERR! node_modules/cypress
npm ERR!   dev cypress@"8.3.0" from the root project

then tried with npm install --save-dev cypress@8.3.0 -force,

then npm run cy:o

which throws

> cypress open

No version of Cypress is installed in: C:\Users\DDH053\AppData\Local\Cypress\Cache\8.3.0\Cypress

Please reinstall Cypress by running: cypress install

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 or npx cypress open

will launch the test runner.

1reaction
flotwigcommented, Aug 17, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found