question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress failed to download/install on our Azure DevOps build server when using Nexus as NPM registry

See original GitHub issue

Current behavior:

We are using Nexus as a repository for all our binaries. Therefore we have configured NPM as following. .npmrc containing: registry=http://nexus.ourInternalDomain.nl/repository/npm-all

I have verified the availability of the binary in Nexus. It’s available with the following URL: http://nexus.ourInternalDomain.nl/repository/npmjs/cypress/-/cypress-4.9.0.tgz

During the installation on our Azure DevOps build server i get the following message:

[?25l[18:07:08]  Downloading Cypress     [started]
2020-07-01T16:07:08.402Z cypress:cli needed Cypress version: 4.9.0
2020-07-01T16:07:08.402Z cypress:cli source url https://download.cypress.io/desktop/4.9.0?platform=win32&arch=x64
2020-07-01T16:07:08.402Z cypress:cli downloading cypress.zip to "C:\Users\ZMSAAZ~1\AppData\Local\Temp\cypress.zip"
2020-07-01T16:07:08.409Z cypress:cli Downloading package {
  url: 'https://download.cypress.io/desktop/4.9.0?platform=win32&arch=x64',
  proxy: null,
  downloadDestination: 'C:\\Users\\ZMSAAZ~1\\AppData\\Local\\Temp\\cypress.zip'
}
2020-07-01T16:07:29.465Z cypress:cli URL: https://download.cypress.io/desktop/4.9.0?platform=win32&arch=x64
Error: connect ETIMEDOUT 104.26.7.176:443
[18:07:29]  Downloading Cypress     [failed]
[?25hThe Cypress App could not be downloaded.

Somehow Cypress is not getting downloaded from our Nexus server, while all other dependancies (for example: cypress-ntlm-auth) are succesfully downloaded. On our build server a proxy to the internet is not allowed, therefore all binaries have to come from Nexus.

Desired behavior:

I would like to see Cypress getting downloaded and installed from our Nexus server. Using the ‘CYPRESS_INSTALL_BINARY’ setting is also not an option as it will then fail to unzip as Nexus uses .tgz format. Besides that i want the versioning being driven by the package.json and not to update the build server script with each version upgrade.

Versions

I tested with version following versions: Cypress: 4.8.0 and 4.9.0 NodeJS: v12.18.1 NPM: 6.14.5

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
antonselukhcommented, Oct 20, 2021

bumping the issue Like, comment and subscribe

0reactions
tom-chamberlaincommented, Apr 12, 2022

There is an accepted answer on stack overflow here that suggests using a generic remote repository to cache the binary, and setting the mirror variable to make the cypress installer download from nexus

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't npm install in azure with pipeline and outside library ...
I'm trying several times to do an npm install but it's hard failing. This is due an own Angular library hosted in Azure...
Read more >
Cypress failed to start on Windows - Stack Overflow
Tried opening Cypress using the prompt: node_modules.bin\cypress open but got the below message but there was no error listed. Has anyone come across...
Read more >
Caching node modules and Cypress installation in an azure ...
After a few trial and error, I finally got the build to run Cypress tests and cache the binaries. Keep in mind that...
Read more >
download directory from ftp server Code Example
Could not build wheels for pygalmesh which use PEP 517 and cannot be ... to the npm registry - including for package installation...
Read more >
SEC Filing - Investor Relations - NetApp
UNITED STATES. SECURITIES AND EXCHANGE COMMISSION. Washington, D.C. 20549. Form 10-K. (Mark One). ☑ ANNUAL REPORT PURSUANT TO SECTION 13 OR 15(d) OF...
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