When I try to use cypress open
or cypress run
, I get the following error:
✖ Verifying Cypress can run /*/*/.cache/Cypress/3.1.5/Cypress
→ Cypress Version: 3.1.5
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: /*/*/.cache/Cypress/3.1.5/Cypress/Cypress --smoke-test --ping=984
----------
Platform: darwin (17.6.0)
Cypress Version: 3.1.5
There are no dependencies listed in the error, and I'm not using docker. What should I try?
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.
This error occurs in CI when using cypress run without a valid Cypress binary cache installed on the system (on linux that's ~/. cache/Cypress ). To fix this error, follow instructions on caching the cypress binary in CI, then bump the version of your CI cache to ensure a clean build.
By passing --browser and --e2e or --component when launching a project, you can open Cypress and launch the browser at the same time.
Simply try ./node_modules/.bin/cypress install
if you're using Cypress for the first time.
One thing that worked for me was unsetting the NODE_OPTIONS
environment variable:
on MacOS
unset NODE_OPTIONS
cypress open
on Windows
set NODE_OPTIONS=
cypress open
if that fails, try the following as suggested by a user on Github:
on MacOS:
/Users/[username]/Library/Caches/Cypress
npm i cypress -g
cypress open
on Windows:
C:\Users[username]\AppData\Local\Cypress\Cache
)npm i cypress -g
cypress open
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With