cypress: Cypress throws Error: Corrupted download around ~86%

Current behavior

Multiple teams in multiple repos on multiple versions of cypress are currently running into an issue where a npm install of cypress bombs out at around 80% with a message about proxies and corrupted downloads. image

Debug logs

$ npm i
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code 1
npm ERR! path C:\Users\batyrkhanovs\source\repos\BC-HPCM-Header-Sidebar\UI\test-cypress\node_modules\cypress
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node index.js --exec install
npm ERR! Installing Cypress (version: 12.16.0)
npm ERR! 
npm ERR! [STARTED] Task without title.
npm ERR! [TITLE]  Downloading Cypress      0% 0s
npm ERR! [TITLE]  Downloading Cypress      1% 30s
npm ERR! [TITLE]  Downloading Cypress      1% 41s
npm ERR! [TITLE]  Downloading Cypress      1% 51s
npm ERR! [TITLE]  Downloading Cypress      2% 30s
npm ERR! [TITLE]  Downloading Cypress      2% 36s
npm ERR! [TITLE]  Downloading Cypress      3% 27s
npm ERR! [TITLE]  Downloading Cypress      3% 30s
npm ERR! [TITLE]  Downloading Cypress      3% 34s
npm ERR! [TITLE]  Downloading Cypress      3% 38s
npm ERR! [TITLE]  Downloading Cypress      4% 31s
npm ERR! [TITLE]  Downloading Cypress      4% 34s
npm ERR! [TITLE]  Downloading Cypress      5% 29s
npm ERR! [TITLE]  Downloading Cypress      5% 32s
npm ERR! [TITLE]  Downloading Cypress      6% 28s
npm ERR! [TITLE]  Downloading Cypress      6% 29s
npm ERR! [TITLE]  Downloading Cypress      6% 31s
npm ERR! [TITLE]  Downloading Cypress      7% 27s
npm ERR! [TITLE]  Downloading Cypress      7% 29s
npm ERR! [TITLE]  Downloading Cypress      7% 30s
npm ERR! [TITLE]  Downloading Cypress      8% 27s
npm ERR! [TITLE]  Downloading Cypress      8% 29s
npm ERR! [TITLE]  Downloading Cypress      9% 26s
npm ERR! [TITLE]  Downloading Cypress      9% 27s
npm ERR! [TITLE]  Downloading Cypress      10% 25s
npm ERR! [TITLE]  Downloading Cypress      10% 26s
npm ERR! [TITLE]  Downloading Cypress      10% 28s
npm ERR! [TITLE]  Downloading Cypress      11% 26s
npm ERR! [TITLE]  Downloading Cypress      11% 28s
npm ERR! [TITLE]  Downloading Cypress      12% 26s
npm ERR! [TITLE]  Downloading Cypress      12% 27s
npm ERR! [TITLE]  Downloading Cypress      12% 28s
npm ERR! [TITLE]  Downloading Cypress      13% 26s
npm ERR! [TITLE]  Downloading Cypress      13% 28s
npm ERR! [TITLE]  Downloading Cypress      13% 29s
npm ERR! [TITLE]  Downloading Cypress      13% 30s
npm ERR! [TITLE]  Downloading Cypress      14% 28s
npm ERR! [TITLE]  Downloading Cypress      14% 29s
npm ERR! [TITLE]  Downloading Cypress      15% 27s
npm ERR! [TITLE]  Downloading Cypress      15% 28s
npm ERR! [TITLE]  Downloading Cypress      15% 29s
npm ERR! [TITLE]  Downloading Cypress      16% 27s
npm ERR! [TITLE]  Downloading Cypress      16% 28s
npm ERR! [TITLE]  Downloading Cypress      17% 27s
npm ERR! [TITLE]  Downloading Cypress      17% 28s
npm ERR! [TITLE]  Downloading Cypress      17% 29s
npm ERR! [TITLE]  Downloading Cypress      18% 27s
npm ERR! [TITLE]  Downloading Cypress      18% 28s
npm ERR! [TITLE]  Downloading Cypress      18% 29s
npm ERR! [TITLE]  Downloading Cypress      19% 28s
npm ERR! [TITLE]  Downloading Cypress      19% 29s
npm ERR! [TITLE]  Downloading Cypress      20% 28s
npm ERR! [TITLE]  Downloading Cypress      21% 27s
npm ERR! [TITLE]  Downloading Cypress      21% 28s
npm ERR! [TITLE]  Downloading Cypress      22% 27s
npm ERR! [TITLE]  Downloading Cypress      22% 28s
npm ERR! [TITLE]  Downloading Cypress      23% 27s
npm ERR! [TITLE]  Downloading Cypress      24% 26s
npm ERR! [TITLE]  Downloading Cypress      24% 27s
npm ERR! [TITLE]  Downloading Cypress      24% 28s
npm ERR! [TITLE]  Downloading Cypress      25% 26s
npm ERR! [TITLE]  Downloading Cypress      25% 27s
npm ERR! [TITLE]  Downloading Cypress      26% 26s
npm ERR! [TITLE]  Downloading Cypress      27% 25s
npm ERR! [TITLE]  Downloading Cypress      27% 26s
npm ERR! [TITLE]  Downloading Cypress      28% 25s
npm ERR! [TITLE]  Downloading Cypress      29% 24s
npm ERR! [TITLE]  Downloading Cypress      29% 25s
npm ERR! [TITLE]  Downloading Cypress      29% 26s
npm ERR! [TITLE]  Downloading Cypress      30% 25s
npm ERR! [TITLE]  Downloading Cypress      31% 25s
npm ERR! [TITLE]  Downloading Cypress      32% 24s
npm ERR! [TITLE]  Downloading Cypress      32% 25s
npm ERR! [TITLE]  Downloading Cypress      33% 24s
npm ERR! [TITLE]  Downloading Cypress      34% 23s
npm ERR! [TITLE]  Downloading Cypress      34% 24s
npm ERR! [TITLE]  Downloading Cypress      35% 23s
npm ERR! [TITLE]  Downloading Cypress      35% 24s
npm ERR! [TITLE]  Downloading Cypress      36% 23s
npm ERR! [TITLE]  Downloading Cypress      37% 23s
npm ERR! [TITLE]  Downloading Cypress      38% 22s
npm ERR! [TITLE]  Downloading Cypress      39% 22s
npm ERR! [TITLE]  Downloading Cypress      40% 21s
npm ERR! [TITLE]  Downloading Cypress      40% 22s
npm ERR! [TITLE]  Downloading Cypress      41% 21s
npm ERR! [TITLE]  Downloading Cypress      41% 22s
npm ERR! [TITLE]  Downloading Cypress      42% 21s
npm ERR! [TITLE]  Downloading Cypress      43% 21s
npm ERR! [TITLE]  Downloading Cypress      44% 20s
npm ERR! [TITLE]  Downloading Cypress      44% 21s
npm ERR! [TITLE]  Downloading Cypress      45% 20s
npm ERR! [TITLE]  Downloading Cypress      45% 21s
npm ERR! [TITLE]  Downloading Cypress      46% 20s
npm ERR! [TITLE]  Downloading Cypress      46% 21s
npm ERR! [TITLE]  Downloading Cypress      47% 20s
npm ERR! [TITLE]  Downloading Cypress      48% 20s
npm ERR! [TITLE]  Downloading Cypress      49% 19s
npm ERR! [TITLE]  Downloading Cypress      49% 20s
npm ERR! [TITLE]  Downloading Cypress      50% 19s
npm ERR! [TITLE]  Downloading Cypress      51% 19s
npm ERR! [TITLE]  Downloading Cypress      52% 18s
npm ERR! [TITLE]  Downloading Cypress      52% 19s
npm ERR! [TITLE]  Downloading Cypress      53% 18s
npm ERR! [TITLE]  Downloading Cypress      54% 18s
npm ERR! [TITLE]  Downloading Cypress      55% 18s
npm ERR! [TITLE]  Downloading Cypress      56% 17s
npm ERR! [TITLE]  Downloading Cypress      56% 18s
npm ERR! [TITLE]  Downloading Cypress      57% 18s
npm ERR! [TITLE]  Downloading Cypress      57% 19s
npm ERR! [TITLE]  Downloading Cypress      58% 19s
npm ERR! [TITLE]  Downloading Cypress      59% 19s
npm ERR! [TITLE]  Downloading Cypress      60% 18s
npm ERR! [TITLE]  Downloading Cypress      61% 18s
npm ERR! [TITLE]  Downloading Cypress      62% 17s
npm ERR! [TITLE]  Downloading Cypress      63% 17s
npm ERR! [TITLE]  Downloading Cypress      64% 16s
npm ERR! [TITLE]  Downloading Cypress      65% 16s
npm ERR! [TITLE]  Downloading Cypress      66% 15s
npm ERR! [TITLE]  Downloading Cypress      66% 16s
npm ERR! [TITLE]  Downloading Cypress      67% 15s
npm ERR! [TITLE]  Downloading Cypress      68% 14s
npm ERR! [TITLE]  Downloading Cypress      68% 15s
npm ERR! [TITLE]  Downloading Cypress      69% 14s
npm ERR! [TITLE]  Downloading Cypress      70% 14s
npm ERR! [TITLE]  Downloading Cypress      71% 13s
npm ERR! [TITLE]  Downloading Cypress      71% 14s
npm ERR! [TITLE]  Downloading Cypress      72% 13s
npm ERR! [TITLE]  Downloading Cypress      73% 13s
npm ERR! [TITLE]  Downloading Cypress      73% 14s
npm ERR! [TITLE]  Downloading Cypress      74% 13s
npm ERR! [TITLE]  Downloading Cypress      75% 13s
npm ERR! [TITLE]  Downloading Cypress      76% 12s
npm ERR! [TITLE]  Downloading Cypress      77% 12s
npm ERR! [TITLE]  Downloading Cypress      78% 11s
npm ERR! [TITLE]  Downloading Cypress      78% 12s
npm ERR! [TITLE]  Downloading Cypress      79% 12s
npm ERR! [TITLE]  Downloading Cypress      79% 13s
npm ERR! [TITLE]  Downloading Cypress      80% 12s
npm ERR! [TITLE]  Downloading Cypress      80% 13s
npm ERR! [TITLE]  Downloading Cypress      81% 12s
npm ERR! [TITLE]  Downloading Cypress      81% 14s
npm ERR! [TITLE]  Downloading Cypress      82% 13s
npm ERR! [TITLE]  Downloading Cypress      82% 14s
npm ERR! [TITLE]  Downloading Cypress      83% 13s
npm ERR! [TITLE]  Downloading Cypress      84% 12s
npm ERR! [TITLE]  Downloading Cypress      84% 13s
npm ERR! [TITLE]  Downloading Cypress      84% 14s
npm ERR! [TITLE]  Downloading Cypress      85% 13s
npm ERR! [TITLE]  Downloading Cypress      85% 14s
npm ERR! [TITLE]  Downloading Cypress      86% 13s
npm ERR! The Cypress App could not be downloaded.
npm ERR!
npm ERR! Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration
npm ERR!
npm ERR! Otherwise, please check network connectivity and try again:
npm ERR!
npm ERR! ----------
npm ERR!
npm ERR! URL: https://download.cypress.io/desktop/12.16.0?platform=win32&arch=x64
npm ERR! Error: Corrupted download
npm ERR!
npm ERR! Expected downloaded file to have checksum: 07118e2dc64c7af451e51426ef781e8262e57b46dc45755846cedd9e1357c7b75974f63a6c465dd79688f83c1a74f68a9c9af5c906a7eecc767f3a33a4fa57ce
npm ERR! Computed checksum: 7c17f960a528ca0d44ac9d1950005983d211980e4a9d87199895c1abc62c9747f3312a95b33644e283ca7fd3e090b70530c4e9fbd6a6077bd67f38e30bce0b1b
npm ERR!
npm ERR! Expected downloaded file to have size: 180127721
npm ERR! Computed size: 155711790
npm ERR!
npm ERR! ----------
npm ERR!
npm ERR! Platform: win32-x64 (10.0.19045)
npm ERR! Cypress Version: 12.16.0
npm ERR! [FAILED] The Cypress App could not be downloaded.
npm ERR! [FAILED]
npm ERR! [FAILED] Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration
npm ERR! [FAILED]
npm ERR! [FAILED] Otherwise, please check network connectivity and try again:
npm ERR! [FAILED]
npm ERR! [FAILED] ----------
npm ERR! [FAILED]
npm ERR! [FAILED] URL: https://download.cypress.io/desktop/12.16.0?platform=win32&arch=x64
npm ERR! [FAILED] Error: Corrupted download
npm ERR! [FAILED]
npm ERR! [FAILED] Expected downloaded file to have checksum: 07118e2dc64c7af451e51426ef781e8262e57b46dc45755846cedd9e1357c7b75974f63a6c465dd79688f83c1a74f68a9c9af5c906a7eecc767f3a33a4fa57ce
npm ERR! [FAILED] Computed checksum: 7c17f960a528ca0d44ac9d1950005983d211980e4a9d87199895c1abc62c9747f3312a95b33644e283ca7fd3e090b70530c4e9fbd6a6077bd67f38e30bce0b1b
npm ERR! [FAILED]
npm ERR! [FAILED] Expected downloaded file to have size: 180127721
npm ERR! [FAILED] Computed size: 155711790
npm ERR! [FAILED]
npm ERR! [FAILED] ----------
npm ERR! [FAILED]
npm ERR! [FAILED] Platform: win32-x64 (10.0.19045)
npm ERR! [FAILED] Cypress Version: 12.16.0

Cypress Version

12.16.0

Node version

16.16.0

Package Manager

npm

Package Manager Version

8.11.0

Operating system

Windows

Operating System Version

Windows 10 Enterprise

Other

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

@serikbatyrkhanov

Congratulations on solving your download problem! 🎉 Thank you also very much for sharing the reason for the problem as this may also help other users facing a similar issue.

@MikeMcC399 not yet. I am planning to call IT Support Helpdesk and check if the issue is related to VPN that our company is using. Couldn’t do it yesterday and today due to being booked for all day meetings. I will provide update on that as well asap

@serikbatyrkhanov I’m curious if this is cleared up for you now. We’ve identified a problem in the service and are actively working on the root cause. In the mean time, we’ve placed some preventative measures to help with this issue. Thank you for your patience on this!

Sure, I will check with VPN Support team if this issue related to that and will post update. Thank you @MikeMcC399 !

@serikbatyrkhanov

If you are on a corporate network / using a proxy server / using VPN and you have the ability to use a different network you might like to try that out.

The downloads are served from cloudflare. It may need the infrastructure team to check for any server-side problem.

@serikbatyrkhanov

Are you still seeing this issue? I was not able to reproduce it.

node -v
v16.16.0
npm -v
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
8.11.0

npm install cypress@12.16.0 --foreground-scripts
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
[##############....] | reify:@types/node: timing reify:audit Completed in 325ms
> cypress@12.16.0 postinstall
> node index.js --exec install

Installing Cypress (version: 12.16.0) timing reifyNode:node_modules/cypress/node_modules/@types/node Completed in 668ms

✔  Downloaded Cypress
✔  Unzipped Cypress
✔  Finished Installation C:\Users\mikem\AppData\Local\Cypress\Cache\12.16.0
[##################] \ reify:cypress: timing reifyNode:node_modules/cypress/node_modules/@types/node Completed in 668ms
You can now open Cypress by running: node_modules\.bin\cypress open

https://on.cypress.io/installing-cypress


added 1 package, changed 1 package, and audited 179 packages in 5m

36 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities