cypress: The Cypress App could not be downloaded (Can't install via NPM I on WINDOWS 2012)

Current behavior:

Can’t install any Cypress version.

I do not use a proxy, I can also download the required version via the browser and console.


STR: When I make:

npm install cypress --save-dev

I get:

URL: https://download.cypress.io/desktop/3.7.0?platform=win32&arch=x64
Error: read ECONNRESET

Desired behavior:

The installation of the module should be successful.

Test code to reproduce

Log:

> cypress@3.7.0 postinstall C:\projects\xxx\develop\node_modules\cypress
> node index.js --exec install

Installing Cypress (version: 3.7.0)

[09:45:47]  Downloading Cypress     [started]
[09:45:48]  Downloading Cypress     [failed]
[09:45:48] → The Cypress App could not be downloaded.

Does your workplace require a proxy to be used to access the Internet? If so, y               ou must configure the HTTP_PROXY environment variable before downloading Cypres               s. Read more: https://on.cypress.io/proxy-configuration

Otherwise, please check network connectivity and try again:

----------

URL: https://download.cypress.io/desktop/3.7.0?platform=win32&arch=x64
Error: read ECONNRESET

----------

Platform: win32 (6.3.9600)
Cypress Version: 3.7.0
The Cypress App could not be downloaded.

Does your workplace require a proxy to be used to access the Internet? If so, y               ou must configure the HTTP_PROXY environment variable before downloading Cypres               s. Read more: https://on.cypress.io/proxy-configuration

Otherwise, please check network connectivity and try again:

----------

URL: https://download.cypress.io/desktop/3.7.0?platform=win32&arch=x64
Error: read ECONNRESET

----------

Platform: win32 (6.3.9600)
Cypress Version: 3.7.0
npm WARN rollback Rolling back node-pre-gyp@0.14.0 failed (this is probably har               mless): EPERM: operation not permitted, scandir 'C:\projects\xxx\develop\nod               e_modules\fsevents\node_modules'
npm WARN eslint-config-airbnb@17.1.0 requires a peer of eslint@^4.19.1 || ^5.3.               0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-loader@2.1.2 requires a peer of eslint@>=1.6.0 <6.0.0 but none                is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb-base@13.2.0 requires a peer of eslint@^4.19.1 ||                ^5.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\f               sevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents               @1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x6               4"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cypress@3.7.0 postinstall: `node index.js --exec install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cypress@3.7.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional lo               gging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-02-04T               07_45_59_543Z-debug.log

Versions

Cypress 3.7.0

Operating System: Windows Server 2012 R2 Standard 64-bit (6.3, Build 9600) (9600.winblue_ltsb_escrow.191014-1700)

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 11
  • Comments: 25 (4 by maintainers)

Most upvoted comments

I always come back to this issue and find that it’s always the fact there are two instances in the lockfile. I fix it by forcing the correct version via the “resolutions” field in package.json.

This can be solved using yarn upgrade cypress

This issue should be closed.

PS: I’m on a Mac OS

Getting this again today for 4.6.0. It seems like binaries get corrupted on some sort of random, self-resolving basis.

I got the same error on the azure pipeline but with yarn and I was able to workaround. log:

yarn install v1.21.1
warning package.json: No license field
warning compriquote@1.0.0: No license field
[1/4] Resolving packages...
warning " > @storybook/react@5.3.13" has unmet peer dependency "babel-loader@^7.0.0 || ^8.0.0".
warning "@storybook/react > @babel/preset-flow@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > @storybook/core@5.3.13" has unmet peer dependency "@babel/core@*".
warning "@storybook/react > @storybook/core@5.3.13" has unmet peer dependency "babel-loader@^7.0.0 || ^8.0.0".
[4/4] Building fresh packages...
error /home/vsts/work/1/s/node_modules/cypress: Command failed.
Exit code: 1
Command: node index.js --exec install
Arguments: 
Directory: /home/vsts/work/1/s/node_modules/cypress
Output:
Installing Cypress (version: 3.7.0)

25l[12:56:22]  Downloading Cypress     [started]
[12:56:25]  Downloading Cypress     [failed]
25hThe Cypress App could not be downloaded.

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

Otherwise, please check network connectivity and try again:

----------

URL: https://download.cypress.io/desktop/3.7.0?platform=linux&arch=x64
Error: Corrupted download

Expected downloaded file to have checksum: 426bc17a99e0d7fb9e254f055b7f4c81ba6f1315731248706e2c4748bd10346670d09186cfc76ce452b7f287c8c92789b30a25788d11a1bfa9313b3b944be6bf
Computed checksum: 91f12188e5c6074928f8fa659668d5e1bbd13ab353d0a6b8405310836694f02b08c8431119e45a59d2f4ff814fe243d74a5d256b6f009fa7f12b4ac1412fa640

Expected downloaded file to have size: 161801618
Computed size: 161801618

----------

Platform: linux (Ubuntu Linux - 16.04)
Cypress Version: 3.7.0
25h
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

workaround

I remove from my package.json @testing-library/cypress. I refactored my tests. I delete the node_modules folder rm -rf node_modules I run yarn install and It works!!!

I have the same “corruption” issue where the checksum fails, but the filesize matches. https://github.com/cypress-io/cypress/issues/7761

For no reason at all, after trying to go back to 3.8.3, and then re-downloading 4.8.0, it worked. amazing. Lost about 8+ hours to this.