Cypress failed to download/install on our Azure DevOps build server when using Nexus as NPM registry
See original GitHub issueCurrent 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:
- Created 3 years ago
- Comments:8 (1 by maintainers)
Top GitHub Comments
bumping the issue Like, comment and subscribe
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