-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No version of Cypress is installed #2610
Comments
Does it work after running |
No it doesn't. The only way I've been able to get around it is to install it globally. Works for the day, but need to reinstall it all over again the next day. |
@jmargolisvt what output do you get with |
Both commands yield |
@jmargolisvt just like any other node module, you'll have to execute cypress from the ./node_modules/.bin/cypress install |
Yes, that will install cypress and it will work for the moment. Restart the computer, and it's gone again, back to the original error message. |
@jmargolisvt it looks like Cypress was installed as a different user, |
Sorry, mixed that up. They are both for the same user. It's my coworker that's having this issue (edited my first post). |
@jmargolisvt ok, I would see if the entire |
It is not being cleared on reboot. Still plenty of stuff in there, just not Cypress. |
@jmargolisvt so cypress cache exists before reboot, but is gone after? |
That is correct. |
@jmargolisvt well I'm not sure why that would be the case...can you check the permissions of the cypress cache folder after the binary is installed? for example with |
Anything look wrong here? |
@jmargolisvt i'd compare that to other items in |
I have the same permissions on my machine (which works correctly).
|
@jmargolisvt well, I don't know what Cypress can do about the binary disappearing...this is seemingly something very specific to your co-workers system. They can try exporting |
I have the same issue. |
Unfortunately we'll have to close this issue if no reproducible example is provided. Can anyone provide a way to reproduce this? |
Hi there, I managed to install cypress and run the tests locally, but now I want to run the project and the terminal shows me cypress: command not found, don't know why! PLEASE, help! |
Solved, I run it with the command |
Closing an unsolved issue is a cop out - even if you cannot reproduce it. |
@hellfireSteve I see where you're coming from, however without a reproducible or further feedback on the issue, we can't be certain this actually is a problem with cypress. |
We've been seeing this issue in CI for as long as we've been using cypress.
doesn't fix the issue:
The directory exists but the binary is missing:
|
Looking at this particular agent's history, I see that in an earlier run the job was killed part way through while running yarn install:
|
Same exact experience on latest macOS Mojave. Been happening for a while. Install works - within a day or so - same error. |
I am also having the same issue. I can run on my local mac, but when I push to the cloud I get:
I realize this issue is closed - I can open a new one if necessary. Looking for suggestions on how to resolve this issue. |
This works fine when I build the image locally but fails when in BuildKite |
@dwesty17 Typically the reason for this message is that the previously installed version cannot be found at the cache location. This may be because your CI setup or some other factor (like a virus software) has cleared the cache directory. It's hard to say without seeing your setup. We have Cypress run quite frequently in GitHub actions with many examples here: https://github.com/cypress-io/github-action |
I've had the same problem on a Windows 10 Home Single Language (Version: 20H2) Installed cypress yesterday for the first time, it worked fine. Come morning, I boot my PC up and cannot run cypress Running a './node_modules/.bin/cypress install' fixed the issue, but according to this forum, on the morrow I am to see this again. |
I was having the same issue in Ubuntu 20. After installing Node.js and running the command to download cypress: You have to run this command: You have to wait to the installation is completed and after that you will be able to run the open command: In my case, all of that worked. Good luck |
Most of the time this way works: |
Hi Team, iPS F:\Cypress\abx> ./node_modules/.bin/cypress run Please reinstall Cypress by running: cypress install Cypress executable not found at: C:\Users\Aaara-ATL028\AppData\Local\Cypress\Cache\6.9.1\Cypress\Cypress.exe Platform: win32 (10.0.19042) |
@jennifer-shehane can you please respond? |
Removing the cypress npm package and re-installing it worked for me. |
Faced the same issue. I figured out that I had the latest cypress version installed on my PC (8.3.1) but my work project was using an older version (5.6.0). The following solved the problem for me: Cypress installation - ./node_modules/.bin/cypress install Cypress run - ./node_modules/.bin/cypress open |
It's been 3 years, and this issue still exists :( SetupSystem: MacOS v11.3.1.
Steps to Reproduce:
Temporary SolutionAs folks suggested here, running this command Personally I have not seen other executable Node modules having this problem so this is likely specific to Cypress & really hope you guys can re-open & investigate this issue, I'd be happy to provide more details if needed. |
Basically the issue is that the Cypress electronJS app cache is not found on your system. Maybe due to cache clearing. To solve this issue, you need to install cypress again on your system. but the trick is that you don't do it from the app directory you are working on :
This should work for long term. even after restart. For temporary solution run : |
What worked for me: > rm -rf ~/.cache/Cypress/<version-from-the-error-here>/
> npm cache clear -f
> npm i cypress -D
> node_modules/.bin/cypress install |
I hit this issue because of a failure during the initial install. The Maybe |
I’d like to add I also experienced this problem, running on a Mac with macOS Monterey 12.2. Listing the contents of As per the suggestion above I created a parallel project with just cypress@9.5.1 as a dependency, and then ran I don't have CleanMyMac (or indeed much other third-party software) installed since this is a corporate machine which is fairly locked-down, so I'd encourage re-opening this ticket. It seems highly likely there is a bug in the install script which causes it to hang or fail for some unreported reason. |
For those having this issue in containers, have a look at the |
|
To solve this in a simple way execute the below commands in order
You can thank me later.. |
We are using just slightly modified conditional script for CI and local development
|
The same issue is faced when I opened an exported folder in VS code.
After that, it successfully installed when I followed > ./node_modules/.bin/cypress install. |
Thanks! this was helpful!! |
I ran across the same or a similar issue. I think what was happening was that there were existing processes that had a lock on the Cypress executable file. When I tried to run Cypress it failed saying it wasn't installed. After killing all processes using the executable, things worked as expected. |
Thanks! |
I've deleted the node_modules and it worked for me |
Stumbled upon this issue. Fixed with adding the following
|
I needed to use |
Current behavior:
I've installed Cypress successfully, but when I try to run it with
cypress open
I get:Desired behavior:
cypress open
should open CypressSteps to reproduce:
npm i cypress
cypress open
Versions
Cypress 3.1.0
Node 8.12.0
OSX High Sierra
The text was updated successfully, but these errors were encountered: