Can't install cypress

See original GitHub issue

I’m trying to install cypress, there is as proxy involved. I’ve read everything on the Cypress web site about proxies and tried everything I know to try. Still can’t install it. I’m doing this from a PowerShell window.

Here’s the setup: I have a .npmrc file with registry=https://{address of our internal npm repository}

I have verified that Cypress is there.

In the PowerShell window, before installing I do:

$env:HTTP_PROXY = "{our internal proxy}"
npm config set registry https://{same address above, to internal npm repository}

After “npm install cypress” I get this error:

===================================================

> cypress@6.6.0 postinstall C:\Code\CypressTest\node_modules\cypress
> node index.js --exec install

Installing Cypress (version: 6.6.0)

  ×  Downloading Cypress
    → Cypress Version: 6.6.0
     Unzipping Cypress
     Finishing Installation
The 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/6.6.0?platform=win32&arch=x64
Error: tunneling socket could not be established, cause=connect ECONNREFUSED xxx.xxx.xxx.xxx:80

Platform: win32 (10.0.18363)
Cypress Version: 6.6.0

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

npm ERR! A complete log of this run can be found in:

======================================================

Any ideas on what I am missing?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jennifer-shehanecommented, Mar 15, 2021

@cbruge The proxy configuration is not sensitive to capitalization: https://github.com/cypress-io/cypress/blob/develop/cli/lib/tasks/download.js#L19:L19

0reactions
jennifer-shehanecommented, Mar 17, 2021

@steverb1 That is not expected behavior. This can happen if you have 2 Cypress applications running at the same time. https://github.com/cypress-io/cypress/issues/5613

I think it may also happen if you are connecting to the chrome debugging port in some other manner https://github.com/cypress-io/cypress/issues/14835

But I haven’t seen that error in a while outside of those reasons.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not able to install cypress on windows 10 - Stack Overflow
I have installed Nodejs and run npm install command to create a package.json file in the cypress folder but was still not able...
Read more >
Installing - Cypress Documentation
This will install Cypress locally as a dev dependency for your project. Make sure that you have already run npm init or have...
Read more >
Not able to download/ install cypress. · Issue #20032 - GitHub
While installing cypress using command. npm install cypress --save-dev. Issue: Not seeing the download cypress and instillation closed. Debug ...
Read more >
cypress - npm
What is this? Cypress comes packaged as an npm module, which is all you need to get started testing. After installing you'll be...
Read more >
How to Install Cypress for Test Automation | BrowserStack
Bear in mind that users who downloaded Cypress directly won't be able to record the dashboard. Once the zip file is downloaded, unzip...
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