Cypress hangs on Verifying Cypress can run
See original GitHub issueCurrent behavior:
Installed Cypress through npm and running Cypress from command line for the first time, Cypress hangs on the Verifying Cypress can run step indefinitely:
> bloglist-frontend@0.1.0 cypress:open /mnt/c/users/asus/fullstackopen/part5/bloglist-frontend
> cypress open
It looks like this is your first time using Cypress: 4.4.1
⠙ Verifying Cypress can run /home/annateng/.cache/Cypress/4.4.1/Cypress
Below is the output when running debug: DEBUG=cypress:* npm run cypress:open
cypress:cli:cli cli starts with arguments ["/usr/local/bin/node","/mnt/c/users/asus/fullstackopen/part5/bloglist-frontend/node_modules/.bin/cypress","open"] +0ms
cypress:cli NODE_OPTIONS is not set +0ms
cypress:cli:cli program parsing arguments +6ms
cypress:cli:cli opening Cypress +21ms
cypress:cli parsed cli options {} +320ms
cypress:cli opening from options {"project":"/mnt/c/users/asus/fullstackopen/part5/bloglist-frontend"} +0ms
cypress:cli command line arguments ["--project","/mnt/c/users/asus/fullstackopen/part5/bloglist-frontend"] +0ms
cypress:cli verifying Cypress app +0ms
cypress:cli checking environment variables +2ms
cypress:cli checking if executable exists /home/annateng/.cache/Cypress/4.4.1/Cypress/Cypress +5ms
cypress:cli Binary is executable? : true +5ms
cypress:cli binaryDir is /home/annateng/.cache/Cypress/4.4.1/Cypress +0ms
cypress:cli Reading binary package.json from: /home/annateng/.cache/Cypress/4.4.1/Cypress/resources/app/package.json +0ms
cypress:cli Found binary version 4.4.1 installed in: /home/annateng/.cache/Cypress/4.4.1/Cypress +5ms
cypress:cli could not read binary_state.json file at "/home/annateng/.cache/Cypress/4.4.1/binary_state.json" +24ms
cypress:cli {} +1ms
cypress:cli is Verified ? undefined +23ms
cypress:cli running binary verification check 4.4.1 +1ms
It looks like this is your first time using Cypress: 4.4.1
cypress:cli clearing out the verified version +6ms
cypress:cli undefined DISPLAY environment variable +0ms
cypress:cli Cypress will spawn its own Xvfb +5ms
cypress:cli needs Xvfb? true +24ms
cypress:cli Starting Xvfb +6ms
cypress:cli disabling Electron sandbox +52ms
cypress:cli running smoke test +1ms
cypress:cli using Cypress executable /home/annateng/.cache/Cypress/4.4.1/Cypress/Cypress +1ms
cypress:cli smoke test command: /home/annateng/.cache/Cypress/4.4.1/Cypress/Cypress --no-sandbox --smoke-test --ping=79 +1ms
cypress:cli smoke test timeout 100000 ms +1ms
⠦ Verifying Cypress can run /home/annateng/.cache/Cypress/4.4.1/Cypress
Desired Behavior
Open Cypress
Test code to reproduce
- Installed Cypress using npm:
npm install --save-dev cypress
- Created custom script in package.json:
"scripts": { "cypress:open": "cypress open" },
- Run cypress on CLI:
npm run cypress:open
Versions
Cypress 4.4.1 Windows 10 WSL Ubuntu 18.04 LTS npm 6.14.4
Issue Analytics
- State:
- Created 3 years ago
- Reactions:14
- Comments:14 (1 by maintainers)
Top Results From Across the Web
Troubleshooting | Cypress Documentation
First, find where the binary is installed using the cypress cache path command. If the smoke test fails to execute, check if a...
Read more >cypress-io/cypress - Gitter
yesterday I install cypress global as root (solution found on Github) and next run normal from locally installed and it works. Today this...
Read more >Cypress verification timed out after 30000 milliseconds
To avoid modifying the verify.js file, simply run export CYPRESS_VERIFY_TIMEOUT=100000 in your terminal and re-run npx cypress verify . The ...
Read more >Cypress 9.2.0 introduces a new environment variable ...
'Cypress verify' command gets executed as part of the 'cypress open' and 'cypress run' commands. Cypress now provides an option to override ...
Read more >@cypress/github-action - npm
If you re-run the GitHub workflow, if you use the same custom build id during recording, Cypress Cloud will cancel the run with...
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
Sorry for the late response - Mestru’s link fixed it for me. It was a GUI on WSL issue. Thanks Mestru.
Solved it by updating my distro to WSL2. It would be great to mention somewhere in the docs the setup for WSL2.