No Version of cypress is install error, everytime when open my machine getting this error

See original GitHub issue

cypress cache exists before reboot, but is gone after, after rebooting maching everything is there except cypress, asking to install again

Current behavior

Screenshot (1)

I’ve installed Cypress successfully, but when I try to run it with npx cypress open I get:–>

No version of Cypress is installed in: C:\Users\AXS06ZD\AppData\Local\Cypress\Cache\3.8.3\Cypress

Please reinstall Cypress by running: cypress install

----------

Cypress executable not found at: C:\Users\AXS06ZD\AppData\Local\Cypress\Cache\3.8.3\Cypress\Cypress.exe

----------

Platform: win32 (10.0.17763)
Cypress Version: 3.8.3

Desired behavior:

npx cypress open should open Cypress

Steps to reproduce:

  • npm install
  • npx cypress open

Versions

cypress-3.8.3 node- v12.14.0 windows10

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
pleymorcommented, May 5, 2022

Solved it with with --force:

npm uninstall -D cypress -g
npm install cypress --save-dev
npx cypress install --force
1reaction
ivelincommented, Nov 3, 2021

This happens in gitpod as well. Apparently gitpod does not keep around /home/gitpod/.cache/Cypress/8.7.0/Cypress on workspace restart.

Related gitpod discussion: https://community.gitpod.io/t/gitpod-and-cypress-disagree-on-cache/5535

UPDATE:

Fix for gitpod here: https://community.gitpod.io/t/gitpod-and-cypress-disagree-on-cache/5535/2?utm_source=sendgrid&utm_medium=email&utm_campaign=all-sendgrid-emails

Just tell cypress to use a directory for its cache that will survive restarts:

 CYPRESS_CACHE_FOLDER=/workspace/.cypress-cache
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cypress failed to start on Windows - Stack Overflow
1 Cypress failed to start. This is usually caused by a missing library or dependency. The error below should indicate which dependency is...
Read more >
Advanced Installation | Cypress Documentation
Using the CYPRESS_INSTALL_BINARY environment variable, you can control how Cypress is installed. To override what is installed, you set CYPRESS_INSTALL_BINARY ...
Read more >
Using Graphical User Interfaces like Cypress' in WSL2
To display programs that launch on the WSL side of the machine as ... After installing those packages, trying to run cy:open doesn't...
Read more >
Getting Error While Executing 'Cypress Open' - ADocLib
Solution: Go to your project directory which you installed cypress in your package.json update the cypress version to the latest look at the...
Read more >
How to Fix "The system cannot find the path specified." Error in ...
It seems this error occurs when you have invalid paths in your PATH environment variable e.g. directories which don't exist anymore. To find...
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