-
Notifications
You must be signed in to change notification settings - Fork 1.3k
npm install fails behind corporate proxy #319
Description
After upgrading from 0.6.3 to 0.6.17 the install process of npm fails in post install step.
It turned out to be a proxy issue:
set NODE_DEBUG=net,http,https
npm install
[...]
HTTP 30356: SOCKET ERROR: connect ETIMEDOUT 104.16.18.35:443 Error: connect ETIMEDOUT 104.16.18.35:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)
Trying to download "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.6.17.tgz"
Failed to download "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.6.17.tgz": connect ETIMEDOUT 104.16.18.35:443
Install unsuccessful
[...]
npm ERR! Failed at the esbuild@0.6.17 postinstall script.
[...]
The reason is that the fetch routine does direct http(s) connections.
https://github.com/evanw/esbuild/blob/master/lib/install.ts#L123
If there would be some way to use npm to download the dependencies that would be great.
Else you should provide a way to respect http_proxy and https_proxy env variables.
Right now I have to find a Windows machine that can do direct downloads and copy the files afterward.