From bf90a48c688892fa50fe605275fd3faa4cf8640a Mon Sep 17 00:00:00 2001 From: Peter Kehl Date: Wed, 20 Sep 2017 16:41:45 +1000 Subject: [PATCH 1/3] Using curl behind proxy: for https://github.com/nodejs/nodejs.org/issues/1371 --- locale/en/download/package-manager.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/locale/en/download/package-manager.md b/locale/en/download/package-manager.md index d7d54d6f0f6da..a8b7ea616c72e 100644 --- a/locale/en/download/package-manager.md +++ b/locale/en/download/package-manager.md @@ -7,6 +7,8 @@ title: Installing Node.js via package manager ***Note:*** The packages on this page are maintained and supported by their respective packagers, **not** the Node.js core team. Please report any issues you encounter to the package maintainer. If it turns out your issue is a bug in Node.js itself, the maintainer will report the issue upstream. +When running ```curl``` behind a proxy, invoke it as ```curl --proxy http://proxy.racp.edu.au:3128```. + ---------------------------- * [Arch Linux](#arch-linux) From 313e8ee34c2146ab71a587dae415f2a4f1a6962a Mon Sep 17 00:00:00 2001 From: Peter Kehl Date: Wed, 20 Sep 2017 17:30:46 +1000 Subject: [PATCH 2/3] Installing by curl behind a proxy --- locale/en/download/package-manager.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/locale/en/download/package-manager.md b/locale/en/download/package-manager.md index a8b7ea616c72e..e94fe5687e8e3 100644 --- a/locale/en/download/package-manager.md +++ b/locale/en/download/package-manager.md @@ -7,7 +7,11 @@ title: Installing Node.js via package manager ***Note:*** The packages on this page are maintained and supported by their respective packagers, **not** the Node.js core team. Please report any issues you encounter to the package maintainer. If it turns out your issue is a bug in Node.js itself, the maintainer will report the issue upstream. -When running ```curl``` behind a proxy, invoke it as ```curl --proxy http://proxy.racp.edu.au:3128```. +### Installing by ```curl``` behind a proxy +When running ```curl``` behind a proxy, it's not sufficient to invoke it as ```curl --proxy http://proxy-host:3128```. That's because this step downloads a script, which invokes ```curl``` again. +Instead, have ```~/.curlrc``` containing + +```proxy=[protocol://]proxy-host[:port]``` ---------------------------- From 30da562d06adf939472ddc02d06c99e7dea1632d Mon Sep 17 00:00:00 2001 From: Peter Kehl Date: Wed, 20 Sep 2017 17:34:30 +1000 Subject: [PATCH 3/3] Install by curl behind a proxy. Useful because of 2 stage curl-based installation (which is not obvious). --- locale/en/download/package-manager.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/locale/en/download/package-manager.md b/locale/en/download/package-manager.md index e94fe5687e8e3..ce5a6dc26daf6 100644 --- a/locale/en/download/package-manager.md +++ b/locale/en/download/package-manager.md @@ -7,11 +7,11 @@ title: Installing Node.js via package manager ***Note:*** The packages on this page are maintained and supported by their respective packagers, **not** the Node.js core team. Please report any issues you encounter to the package maintainer. If it turns out your issue is a bug in Node.js itself, the maintainer will report the issue upstream. -### Installing by ```curl``` behind a proxy -When running ```curl``` behind a proxy, it's not sufficient to invoke it as ```curl --proxy http://proxy-host:3128```. That's because this step downloads a script, which invokes ```curl``` again. -Instead, have ```~/.curlrc``` containing +### Installing by `curl` behind a proxy +When running `curl` behind a proxy, don't invoke it as `curl --proxy [proxy-protocol://]proxy-host[:proxy-port]`. That's because this step downloads a script, which invokes `curl` again. +Instead, have `~/.curlrc` containing -```proxy=[protocol://]proxy-host[:port]``` +```proxy=[proxy-protocol://]proxy-host[:proxy-port]``` ----------------------------