-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
install.js should support HTTPS_PROXY environment variable #347
Comments
I don't want the install script to depend on additional packages. I'm going to try moving |
What's the downside of doing I guess if you don't want additional dependencies, you could replicate what these two modules are doing to support downloads via proxies: https://github.com/Rob--W/proxy-from-env (It's a shame proxy support isn't in Node.js) |
The downside is that |
Can confirm it's much faster now with the latest version. My CI now does only take 30s to install modules compared to 5 minutes before. Thanks. |
The esbuild module has below rudimentary
fetch
implementation that does not support fetching via HTTPS proxies which means the script will run for over 4 minutes waiting for the HTTPS request to timeout in environments without direct Internet connectivity.I'd suggest switching to make-fetch-happen for this download which is a
fetch
-compatible module thatnpm
itself uses and it has full proxy support.Related: #319
I could probably send you a pull request but I could not find the source for this script in the repo.
The text was updated successfully, but these errors were encountered: