-
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 postinstall fails behind an HTTPS proxy #1401
Comments
I had this problem a few days ago and found that the best workaround was to download the zip file directly from the site then type the following command before attempting npm install. This should then install the file from your zip file. Hope that helps.
|
Hi, @Toilal But then, could you run your app within cypress? ...because for me, I can launch Regards, |
I don't really use Cypress for now, it's just embedded in the default VueJS boilerplate for E2E tests. |
Try this environment variable:
|
Cypress should (at least) honor the following env vars, which is the de facto way of configuring proxy:
Also, because it's node:
And perhaps also the following npm configs:
Stuff like setting |
@gkemp94's answer solved it for me. |
@gkemp94's answer also solved it for me. |
@davidsteinsland Cypress should already support the |
@jdhines and @ggarcia92 can you provide that as an env var during |
@brian-mann I was having the same issue of ECONNREFUSED for being behind corporate proxy, had already configured (It was needed to use @vue/cli template) |
@uriannrima awesome! There is some workaround documentation on this exact thing in our Epic proxy issue here: #1469 |
so, if you have man in the middle corporate proxy, you can add the extra certificate as an environment variable. It's solved our problem. example:
|
@zerdos My hero of the week. I was doing the binary env variable for this project but that little extra setting (which I was diving into a bunch of sources to find) worked and will likely solve future problems for me. |
In a Jenkinsfile for a Jenkins with Credentials Plugin and Credentials Binding Plugin installed and a username-password credential definition having the id
Also, caching of the cypress binary works well, it only downloads once. |
From version 3.x.x you chould use |
Would be great to see this fixed |
This issue is blocking us from using Cypress - a fix would be super useful. |
@jennifer-shehane This issue should be fixed by #3531, since now we have support for proxies and |
@jennifer-shehane Any time frame when this fix might be release as this issue is stopping us from using cypress in our environments |
We're working on patching up fixes to release this as fast as we can. The introduction of the proxy code brought up some regressions we needed to address before releasing. |
For anyone that's stuck waiting for the patch I have a solution for local testing that works for me.
I have tried this setup on two different windows machine and it works on both. |
1. Download the binary manually here: https://download.cypress.io/desktop |
For windows: |
@datdoan how it is done in MAC, still unable to install cypress? |
Hi @HackPoint, For Mac follow @IonicOnCouch steps below:
|
Hello, can someone please give more details on how to set this ? Is it env variable ? full detailed step by step guide please. I am new to this. thank you |
Hi sidcyrus,
|
Thanks But I still get errror. I even tried giving path of the folder where cypress.zip is to replace the '/path/to/zipfile/' in above command. I am in the directory where I want to install cypress. |
This was released in 3.3.0. 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. |
Current behavior:
I'm running behind an HTTPS corporate proxy configured with a self-signed certificate. This requires to setup the self-signed certificate with
NODE_EXTRA_CA_CERTS
environment variable.yarn install cypress
gives the following error (same with npm)It seems
NODE_EXTRA_CA_CERTS
is not honored by the post installation script downloading cypress binary.Desired behavior:
It should work
How to reproduce:
Come to my company and have fun configuring this proxy sh*t.
Additional Info (images, stack traces, etc)
It was working yesterday, so I think something has changed in the package of
2.1.0
release.The text was updated successfully, but these errors were encountered: