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

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

18reactions
kylemhcommented, Aug 24, 2020

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.

8reactions
chuksgpfrcommented, Nov 16, 2020

This can be solved using yarn upgrade cypress

This issue should be closed.

PS: I’m on a Mac OS

Read more comments on GitHub >

github_iconTop Results From Across the Web

save-dev getting error as The Cypress App could not be ...
I downloaded the zip file shown in https://docs.cypress.io/guides/getting- ... CYPRESS_INSTALL_BINARY=~/Downloads/cypress.zip npm install ...
Read more >
Nx workspace: npm ERR! The Cypress App could not be ...
This error comes up when creating a new Angular workspace using the create-nx-workspace command ... The Cypress App could not be downloaded.npm ERR!npm...
Read more >
Installing - Cypress Documentation
The recommended approach is to install Cypress with npm because: ... Recording runs to Cypress Cloud is not possible from the direct download....
Read more >
Installing Cypress through npm | Blog - Gangsta Software
Cypress can be downloaded using direct download, which is basically a zip file, i.e. it doesn't require any installation. This is not the ......
Read more >
Set up NodeJS on native Windows - Microsoft Learn
js or npm from your operating system before installing a version manager as the different types of installation can lead to strange and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found