NOTE If the code after running Cypress with DEBUG:cypress* is NOT 3221225781, but you are seeing a similar error - see this issue instead: https://github.com/cypress-io/cypress/issues/4624
Running cypress open, cypress run or cypress verify results in the error below. Specifically when running with DEBUG:cypress* logs set, the makeError portion prints the code: 3221225781.
cypress verify
...
cypress:cli Smoke test failed: { Error: Command failed: ..\Cypress.exe --smoke-test --ping=259
at makeError (..cypress\node_modules\execa\index.js:172:9)
at Promise.all.then.arr (..\cypress\node_modules\execa\index.js:277:16)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
code: 3221225781,
stdout: '',
stderr: '',
failed: true,
signal: null,
cmd: '..Cypress.exe --smoke-test --ping=259',
timedOut: false,
? Verifying Cypress can run ..\Cypress
? Cypress Version: xxx
Cypress failed to start.
This is usually caused by a missing library or dependency.
The error below should indicate which dependency is missing.
https://on.cypress.io/required-dependencies
If you are using Docker, we provide containers with all required dependencies installed.
----------
Command failed: ..\Cypress.exe --smoke-test --ping=259
----------
Platform: xxx
Cypress Version: xxx
It appears there is more information from Electron regarding this here: electron/electron#3570
Electron is exiting with exit code 3221225781
There are a bunch of issues over at Electron's github indicating this. I scanned through them but didn't really see any actionable steps. We really need to be able to reproduce this on our own machines so we can iterate on the problem.
A quick google pulls up a bunch of results here: https://www.google.com/search?q=electron+3221225781&oq=electron+3221225781&aqs=chrome..69i57j69i60l2.1334j0j4&sourceid=chrome&ie=UTF-8
I would suggest any/all of you read through those and try out some of the workarounds there. If any work, please report them back here and we'll see what changes we need to make.
I was running into this. I cleared all cypress cache at: C:\Users\<user>\AppData\Local\cypress. I also re-installed the cypress package: npm uninstall cypress --save-dev followed by npm install cypress --save-dev. Good to go.
I have setup a cypress repo on jenkins machine. We run npm install every time. Every time it fails with following error;
It looks like this is your first time using Cypress: 3.4.1
[?25l[15:46:57] Verifying Cypress can run /home/username/.cache/Cypress/3.4.1/Cypress [started]
[15:47:29] Verifying Cypress can run /home/username/.cache/Cypress/3.4.1/Cypress [failed]
[?25hCypress verification timed out.
This command failed with the following output:
/home/username/.cache/Cypress/3.4.1/Cypress/Cypress --smoke-test --ping=236
----------
Command failed: /home/username/.cache/Cypress/3.4.1/Cypress/Cypress --smoke-test --ping=236
----------
If I run the npm install again, it passes.
If you're trying to get this working in a Windows Docker image, something that shows the same error number, then see https://github.com/cypress-io/cypress-docker-images/issues/261 for a possible (if not so great) solution.
I have installed Cypress 4.12.1 version in Windows 10 Home OS. While running the 'cypress open' command from command prompt, below error displays:
C:\Project\work>C:\Project\work\node_modules\.bin\cypress open

I have also cleared the cache from AppData\Local\Cypress\Cache and uninstalled the version >> npm uninstall cypress --save-dev, then installed again, but still I am getting the same error. What else should i need to proceed further ?
I have uninstalled the latest version again and switch to older version is 4.11.0, but I am getting the same error.
having the same cypress verification issue. Tried deleting the cache memory from Appdata and tried installation again but still facing the same error.
Yes, I have managed to resolved the problem by uninstalling, clearing the cache and then installed the cypress version again.
Steps:
1.First I have installed the latest version.
2.Then the above problem occurred.
3.Uninstalled the latest version by, npm uninstall cypress --save-dev
4.Clear the cache from the AppData\Local\Cypress\Cache
5.Restart my laptop and then installed the latest version again.
so if we install the latest version it does have the problem for most of the persons who are trying to install? Anyways thanks for the reply an I will try doing the same thing
From the github thread I could see some of the people are getting the same error. Not sure about the reason. Give a try, even I have tried 3 or 4 times and installed an old version 4.10.0 as the issue was not solved in first instance.
I tried doing the installation with the older version, but no use :( still facing the same issue.
Fwiw, I'm running these versions and it works great:
You can try blowing away node_modules and C:\Users\<user>\AppData\Local\cypress and re-running npm i with those versions or close to it.
I also faced the same as below:
Cypress.exe --smoke-test --ping=649
----------
Command timed out after 30000 milliseconds:
Workaround- It is due to not installing correctly cypress or maybe broken installation. Simple work around in my case npm install --save-dev cypress
Thanks.
After an update, the cypress getting an issue while running
Command timed out after 30000 milliseconds:
Workaround after update-
AppData\Local\Cypress\Cache(older version folder) and paste in newly created AppData\Local\Cypress\Cache(updated version folder).\node_modules.bin\cypress open commandI got this error too when trying to run Cypress in travis CI on a Windows host. Solved it by running npm install cypress again after the npm ci call.
Would it help if a make a small reproducible repo?
It seems this only occurs in Windows, from looking at the comments. @bjowes Yes, a reproducible repo would be ideal. Thanks.
@jennifer-shehane - please see https://github.com/bjowes/cypress-4625-repro
I run it on Travis-CI to execute Cypress on Windows. The repo is setup for it (.travis.yml file in place).
When putting this together, I noticed that it works fine with 5.5.0, so I worked myself backwards to the first failing version, which is 5.3.0. It fails the smoke test with the specific code of this issue.
There are three branches - main, cypress-5-4-0 and cypress-5-5-0. The main branch fails while the others pass.
The only difference between the branches is the cypress version installed.
Even if this seems to be resolved from 5.4.0, I presume it would still be of interest to find the actual root cause.
Most helpful comment
I was running into this. I cleared all cypress cache at:
C:\Users\<user>\AppData\Local\cypress. I also re-installed the cypress package:npm uninstall cypress --save-devfollowed bynpm install cypress --save-dev. Good to go.