Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cypress failed to start on Windows

Tags:

I have just installed Cypress using "npm install cypress --save-dev" and got confirmation that the install was successful as detailed below

  • Downloaded Cypress
  • Unzipped Cypress
  • Finished installation

Tried opening Cypress using the prompt: node_modules.bin\cypress open but got the below message but there was no error listed. Has anyone come across this?

"It looks like this is your first time using Cypress: 1.4.1

→ Cypress Version: 1.4.1 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 using Docker, we provide containers with all required dependencies installed.


Platform: win32 (10.0.14393) Cypress Version: 1.4.1"

like image 975
Nova Avatar asked Jan 18 '18 15:01

Nova


People also ask

Why Cypress is not working?

If you're having an issue during installation of Cypress, try removing the contents of the Cypress cache. This will clear out all installed versions of Cypress that may be cached on your machine. After running this command, you will need to run cypress install before running Cypress again.

How do I know if Cypress is installed on Windows?

Use Git-Bash/Cmd, type "npx cypress --version". It will give Cypress package version, Cypress binary version, Electron and Bundled Node version also. Typing "./node_modules/. bin/cypress version" in cmd prompt will also give the same details.


2 Answers

Try this npx cypress install --force then use npx cypress open

like image 147
Muhammad Ahmad Avatar answered Sep 25 '22 06:09

Muhammad Ahmad


I've had the same issue. After running

npm install --save-dev cypress

you need to run

.\node_modules\.bin\cypress.cmd install

That's a bit confusing in most install guides that I read. After doing this, it worked for me.

like image 41
alxhd Avatar answered Sep 24 '22 06:09

alxhd