-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Loading and Crashing issues with Cypress v3.0.1 #1866
Comments
I completely deleted my version of Cypress and installed it again and it is now working. Still got an issue through npm though |
@Stormdoodle looking into this, which files are you referring to "completely deleting my version of Cypress" ?
Can you explain what you mean by this ? |
@bkucera I mean I uninstalled Cypress that was locally installed. Reinstalled it from the most recent (3.0.1) release and my local version is now working and allowing me to run integration tests. My other issue (or the original issue) is when I try to launch Cypress from Visual Studio Code using |
@Stormdoodle ok, strage that Cypress failed with a dependency error but didn't tell you which one. Can you run the following?
? |
@bkucera
|
@Stormdoodle thanks! How are you getting Cypress to work currently? You said you got it working, how are you running it, from where? How is that different than this failure? |
@bkucera I have a local install of Cypress (Direct Download install) and open my project solution from within the application. My project has 3.0.1 saved as a Dev dependency. My problem/issue is that I can't open Cypress from within Visual Studio Code using the npm/npx methods/ |
Same here
|
@Stormdoodle @filipenevola what are your node versions? |
The problem in #1959 is isolated by running this commands in docker windows container mode: C:\> docker run -it --rm stefanscherer/node-windows:8-nanoserver cmd
# switches into container
C:\> mkdir work
C:\> cd work
C:\work> npm i -y
C:\work> npm i --save-dev cypress@3.0.1
# till now everything works well
C:\work> set DEBUG=*
C:\work> node_modules\.bin\cypress verify The node version is in this case node v8 but also fails with node v10. |
I really want to try cypress out but the installation problems are real and I'm not able to get it running. |
@filipenevola @SeriousM For macos, try installing node via nvm, or another node versioning tool that installs node in the user space, not |
I checked every single step and I'm always the same user (administrator). |
@SeriousM can you try lauching the Cypress binary directly via |
I did, but sadly none of my tries exposed any result..
|
Can any of you link us to the windows docker container you're using or maybe your docker script so we can reproduce on our end? |
It's there, just a few posts before. |
@bkucera I'm running with nvm now:
and I got this error
just to be clear, I run a lot of node projects in this machine without any problem, the only one that is not working is cypress and I see a lot of people complaining about this. Looks like there is something wrong on your end. cypress promises to be the easiest solution that will make my life a lot easier with end-to-end testing but I'm not able to install it 😞, I really want to try this out because I already implemented end-to-end tests with a lot of different tools but I already spent a lot of time trying to make cypress works and that is frustrating. I don't know what else to do, I already read everything that I could find online and I already tried in my Ubuntu machine too, I also got problems there. I really don't believe the problem is on my end when everything except cypress is working fine. If you have more alternatives for me to try I will be happy to do it. /Users/filipenevola/.npm/_logs/2018-06-19T21_31_28_131Z-debug.log content below
|
Same issue here after I installed Cypress as a dependency of my nodejs project. Finally found a workaround.
|
@filipenevola wow, I'm surprised that didn't work 😞 |
@lazytesting what node version are you on? I've never been able to reproduce this. |
@bkucera I got
I also cleaned the cache and installed it again but no luck
|
@bkucera I'm running node v8.11.1 and npm 5.8.0 via NVM for Windows. |
@filipenevola one more thing, Trying to see if we can get more info about the seg fault, can you execute the binary directly with |
Hi, here's an update with 3.0.2, done with the docker setup described above:
|
I tried running cypress from my package.json using the following script:
It works if I remove the 'test:' part it works:
|
The below solution worked, unfortunately now Cypress is installed globally. I see a lot of people suggesting solutions that have to do with Docker or Mac, please note that the issue is concerning Windows dev machines. The error message Cypress gives is not applicable.
Edit: I cleared my node modules and re-ran |
One of our devs was seeing this issue, turns out the only difference between his and my machine was he was using cmd, I was using PowerShell. Not sure why, but he switched to PowerShell and it solved the issue. |
To me, the issue was only fixed after i) I cleared cypress cache, and then ii) I was forced to run |
I'm still not able to run cypress. I already tried everything above many times. My current error is:
|
It worked after doing this for me. This will download and install cypress as a fresh copy. |
I had the exact same problem, and installing " Microsoft Visual C++ Redistributable for Visual Studio 2017" resolved it. I had to also delete ..\AppData\Local\Cypress\Cache . The problem didn't occur on a computer with the same setup which already had the 2017 Redistributable. |
Add this to
And run it with |
This solution fixed the issue for me. |
@filipenevola you should try unsetting the NODE_OPTIONS env var as @jkoop mentioned, since your logs indicate you have it set: MacOS / Linuxunset NODE_OPTIONS # this is not the same as export NODE_OPTIONS= DO NOT USE Windowsset NODE_OPTIONS= DO NOT USE This is due to an Electron bug, where having |
Wow. Thank you @bkucera, now it worked. It seems like that was the issue since always. Now I can finally run cypress and really start to use it. Thank you again! As I'm always using NODE_OPTIONS for other projects I'll have to always disable it for Cypress but better than nothing ;) at least now I can use Cypress. |
Congrats @filipenevola . I do the same as you but it's still get the same error. Could you please show the final configuration? This is what i am doing:
|
Hi @linhsonit , I'm always running cypress like this you can add this to your package.json |
Awesome! Thank you @filipenevola . It's worked. |
For me, what fixed it was intalling the Visual C++ redistributable : |
We did make a few updates recently to |
I still have the problem on the latest release. It occurs randomly on Gitlab CI when running tests on an Ubuntu (16.04 in Docker) without using cache. Is it possible to bypass this I cannot post any more log, as Cypress does not even start.
|
@marcenacp please enable debug logs as mentioned above when posting error logs |
@jennifer-shehane I don't know if this would be helpful at this point. But a fix that happened for us for my co-worker that ran into the exact same error, using Docker on Macs is that we needed to bump up the memory in the Docker settings. |
@sydneybarlow Please comment in the main issue in order to have all conversation in one place #4625 |
Current behavior:
When I try to run Cypress via npm I get the following:
ALSO
If I try to run Cypress from the local install of 3.0.1, it crashes when I try to run an integration test.
Desired behavior:
Cypress will open from npm, and not crash and close if run from local install
Steps to reproduce:
As Current behaviour
Versions
Cypress = v3.0.1
OS = Win 8
Browser = Chrome
The text was updated successfully, but these errors were encountered: