Skip to content
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

Installing cypress through yarn / npm takes forever #7251

Closed
recitogigih opened this issue May 7, 2020 · 24 comments
Closed

Installing cypress through yarn / npm takes forever #7251

recitogigih opened this issue May 7, 2020 · 24 comments

Comments

@recitogigih
Copy link

recitogigih commented May 7, 2020

Current behavior:

I tried to install cypress through yarn / npm but it just takes forever, sometimes it works sometimes not, after googling an issue 1188 happened also in installing binary from korea , my location right now in indonesia. is this has any correlation with asia area? this is really drives me crazy. my connection is just fine

image

Desired behavior:

I just want it can be installed smoothly. not sometimes can be installed, sometimes not.

Test code to reproduce

yarn add cypress --dev or
npm install cypress --save-dev

Versions

cypress 4.5.0, mac os catalina 10.15.4, google chrome

@jennifer-shehane
Copy link
Member

  • How many mbps is your dl running a speed test? https://fast.com/
  • How long is 'forever'? How long does it take to download completely?
  • Is it completely failing to install sometimes?

After downloading the first time, the binary should be cached so you don't need to install again until an upgrade.

I live in asia also and it takes about 1min total to download, unzip, and install and I don't have the best internet download speed tbh.

@cypress-bot cypress-bot bot added the stage: awaiting response Potential fix was proposed; awaiting response label May 7, 2020
@zac11
Copy link

zac11 commented May 7, 2020

Hmmm. I have installed it multiple times today and I do not see any such issue. I was able to finish the process in 3-4 mins max. Are you behind any proxy?

@rucciva
Copy link

rucciva commented May 27, 2020

I'm experiencing this too. i live in Indonesia

Screen Shot 2020-05-27 at 17 41 47

@bekicot
Copy link

bekicot commented Jun 1, 2020

I'm also live in Indonesia. I'm using Indihome. After switching to Indosat network, cypress installation is reasonably fast. On Indihome, it stuck at 3%.

@recitogigih
Copy link
Author

I'm also live in Indonesia. I'm using Indihome. After switching to Indosat network, cypress installation is reasonably fast. On Indihome, it stuck at 3%.

thank you for the solution, so the problem is in the internet service provider

@rucciva
Copy link

rucciva commented Jun 1, 2020

But it could be the problem with the CDN right? i've seen similar old issue

@recitogigih recitogigih reopened this Jun 1, 2020
@jennifer-shehane jennifer-shehane removed the stage: awaiting response Potential fix was proposed; awaiting response label Aug 28, 2020
@jennifer-shehane
Copy link
Member

Closing as resolved.

If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix.

@dlodeprojuicer
Copy link

Having the same issue. I am in South Africa

@geoyws
Copy link

geoyws commented Sep 29, 2020

Having the same issue. Sometimes it takes 3+ minutes which is unusual when running yarn. I am in Kuala Lumpur.

@trainoasis
Copy link

Same here - Central Europe

@jennifer-shehane
Copy link
Member

We believe this issue to be a problem localized to the network where Cypress is installed under and not an issue directly with Cypress.

@recitogigih
Copy link
Author

@jennifer-shehane but i don't have any issue with another npm / yarn install

@RomanDavlyatshin
Copy link

Experiencing the same problem as well :(
Download speed (both with npm install and direct CDN download) is around 50-60kbps, this is unbearable.
image
I am experiencing no issues with other packages/resources, my bandwidth is around 80Mbps

We believe this issue to be a problem localized to the network where Cypress is installed under and not an issue directly with Cypress.

@jennifer-shehane Are you able to provide more info on the issue, please?
Disclaimer: I do understand that this is not something every member of the development team might be aware of. I am asking just in case you are.

@paul-vd
Copy link

paul-vd commented Oct 23, 2021

I have the same issue on my windows + wsl environment, but it seems to work fine on just my windows.

On windows, it only takes a few seconds.
On wsl, it takes over 40 mins.

Any ideas where I can start looking for a solution?

  • I tried clearing my npm cache.
  • I also tried in a fresh node installation (nvm)

image

@thediveo
Copy link

thediveo commented Jan 8, 2022

Cleared yarn cache, tried, tried at other times, in other weeks, days, ... but Cloudflare is a complete snail. Around 1mbit/s at best, with a 100mbit/s downlink. Other sites deliver as expected. Cloudflare does NOT. Also happens on corporate intranet, so I'm now looking to migrate projects away from cypress, as it is unuseable in CI environments as well as on local dev systems.

@RomanDavlyatshin
Copy link

RomanDavlyatshin commented Jan 10, 2022

@thediveo @paul-vd There is a workaround:

  1. Download Cypress binaries from their CDN once
  • See this docs page for the link to the latest version of Cypress. Edit the version/platform parts of the URL https://cdn.cypress.io/desktop/12.5.1/win32-x64/cypress.zip manually to get earlier versions.
  1. Upload these to the hosting of your choice (e.g. I've used GitHub: windows, linux, macos)
  2. Prior to running npm install set the npm config variable.
npm config set CYPRESS_INSTALL_BINARY "https://github.com/Drill4J/heisenbug-moscow-2021-workshop/releases/download/binaries/cypress-8.4.0-linux-x64.zip"` 
// mind the double quotes around URL
// note that the value is set in .npmrc and forces cypress to download the specific version

❗ EDIT ❗ A better solution (to allow Cypress to "autodetect" the appropriate platform/ use version from package.json) would probably be to set a mirror url and upload binaries for the required platforms/versions
Reference in Cypress docs

@BasixKOR
Copy link

BasixKOR commented Feb 8, 2022

image

I was affected by this issue as well. My internet speed is fine as you can see above but it literally takes 16min+ to download this.

@tim-rohrer
Copy link

I'll join the crowd. I download a lot of npm packages without any issues, but every time I try to upgrade cypress, it is a looong process. I'm over 30 minutes now and I still just have this showing:

image

If I cancel, it will show the status something like this:

image

I can't imagine what in Cypress would be the problem, but I just know this is the only package I see this with.

fast.com download speeds > 25Mbps.

The install just finished after nearly 40 minutes.

@jps
Copy link

jps commented Nov 1, 2022

I don't see why this is closed when this is clearly still an issue, it just too me 18mins, I'm on WSL also
image

For reference I can download a 3.6gb ubuntu iso is 1min 30secs

@BlessTheBoy
Copy link

I'm currently experiencing the same issue. Cypress installation getting stuck.
image

@RomanDavlyatshin
Copy link

@BlessTheBoy @BasixKOR @jps @tim-rohrer it seems Cypress team won't fix the issue 😞
I suggest using a workaround posted above
#7251 (comment)

@ihsanberahim
Copy link

ihsanberahim commented Feb 15, 2023

Download from this repo. Click tab 'Code' > 'Releases' > choose latest zip released. ;)

@1mehdifaraji
Copy link

I had the same issue but the network speed was the issue and later on cypress was installed successfully .

@tim-rohrer
Copy link

Doesn't sound like the same issue. At least in my case, the network & speeds were good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests