-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm install not working behind corporate firewall #733
Comments
@BasieP - Have you tried the Direct Download? That should hopefully get you up and running while the community looks into this issue further. |
+1 :( the link to direct download is blocked behind my organisation's firewall |
@tgelu is your organization using something like JFrog Artifactory or do they allow direct download from the npm registry ? When sysadmins blocks downloads from the outside world the solution is to use something like artifactory to act like a proxy with an appropriate network config for that "proxy". That way they can control what it is goin on on their network instead of letting anybody doing everything. For example when you run I am pretty sure it is possible to configure artifactory to act the same way with external downloads fired from npm installation scripts. So I will have to fix this issue also but later. For now the direct download is available to me so i have what i need to convince my hierarchy to heavily use cypress :-) I don't think the bug label is appropriate here. At best you (cypress.io) could embark everything in the cypress package (every platform and arch available) but the direct download package is a 500mo stuff which seems too heavy for the npm registry. |
Guys this seems the same problem that people are having with chromedriver behind corporate networks. |
You could do this already via CYPRESS_INSTALL_BINARY environment variable that can be any URL
…Sent from my iPhone
On Oct 22, 2017, at 12:11, Byron Thanopoulos ***@***.***> wrote:
Guys this seems the same problem that people are having with chromedriver behind corporate networks.
In particular the issue has to do with the usage of https: in the download link
The solution for chrome driver is to be able to specify and alternate location for the download through the npm config.
So if cypress while installing was checking npm connfig for a "cypress-cdnurl" and that url was local to the network then there woud not be an issue.
For completness what I do with Chromedriver is set in my npm config file
...chromedriver_cdnurl=http://someServer/chromedriver ..
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
For completeness based on @bahmutov very helpful hint what you need to do This is very important as the code that installs cypress has a function that checks if the alternative location for the binary starts with You can also pass at the command prompt the same Ideally this should not be the case as the ceremony is greater than it should. |
Good suggestion @IcodeNet and Edited: file path support has not been released yet, watch #701 |
Please watch cypress-io/cypress-documentation#121 where I will document |
it works nice with the CYPRESS_BINARY_VERSION variable, but there is still the bug of it only working with https |
@BasieP - PRs are always welcome! 😄 |
This is the only thing preventing me from using this really nice software. For the time being, I'm stuck with the crappy alternatives :( |
@simonatorw @BasieP is this still the case? There's a problem with |
Gonne test it in new year.. Should work i've seen the fix :)
…On 20 Dec 2017 6:00 pm, "Brian Mann" ***@***.***> wrote:
@simonatorw <https://github.com/simonatorw> @BasieP
<https://github.com/basiep> is this still the case? There's a problem
with http ? We fixed that in 1.1.4 https://docs.cypress.io/
guides/references/changelog.html#1-1-4
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#733 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ab6pPXloGrwHY2uYbPiMHvKgxfxpTG_7ks5tCT0hgaJpZM4P2iAY>
.
|
Hello, thx for your reply. I was able to overcome the problem with the env var solution. Thx. Is it possible to have npm just fetch the zip by default? Wouldn't that solve the problem without setting the env var? As you say, the custom path won't be saved in package.json so someone else cannot do a new npm i and be able to install cleanly. |
why not place the cypress.zip file in the GitHub project? |
In Cypress version 3+ you will need to unset |
Thank you @chris-kobrzak. True but that does not solve my issue |
@TimoPot you can download the binary and host yourself if you'd like. That would be the easiest way to get it inside your network. |
The code for this is done in cypress-io/cypress#3531, but has yet to be released. |
Any indication when it will be released? |
Soon. We have been working on the release - had to pause to fix some potential regressions in the release. 🤞 |
Released in |
I made a tool to help deal with these platform specific binaries, and not being able to download behind firewall, se comment here: #5141 (comment) |
Fix my issue. |
Under Windows and behind corp. proxy I downloaded the zip manually and saved it to C:\dev. |
This issue will be closed to further comment as the exact issue here was resolved and tested. If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix. |
I have troubles installing the npm package behind a corporate firewall due to the download of an executeable included in the post-install of the npm package.
Right now this is how my output looks like:
Probably the downloaded file (zip i guess) gets replaced by a html page of my proxy.
therefore the download is successfull, but the unzip fails
I'm hoping for some way to resolve this for all our big banks, goverments and other companies where we don't blindly trust executables download off the internet.
I don't know much about the logic behind Cypress, but i noticed the CLI is binary, so if that is the problem, please split the package into 2 different NPM packages.
I won't be needing the CLI anyway.
The text was updated successfully, but these errors were encountered: