You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My corporate proxy only fetches resources throw domain names. This means that try to get a resource by his IP address will throw an exception. For example I'm need to install a module called bcrypt. Tracing the process I discovered that [email protected] is trying to download this file https://nodejs.org/download/release/v12.13.1/node-v12.13.1-headers.tar.gz and this results in the error:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected]| linux | x64
gyp info find Python using Python version 3.5.2 found at "/usr/bin/python3"
gyp http GET https://nodejs.org/download/release/v12.13.1/node-v12.13.1-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: connect EHOSTUNREACH 104.20.23.46:443
gyp ERR! stack at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1129:14)
I have the theory that node-gyp is resolving the name and doing the request with the IP address instead the name. Can be this true? In this case exists any way to change this behavior?
The text was updated successfully, but these errors were encountered:
cstffx
changed the title
proxy and name resolution
Corporate proxy and name resolution
Feb 25, 2020
EHOSTUNREACH 104.20.23.46:443 looks to me like it's not even trying to use your corporate proxy. Do you have one of the HTTP_PROXY environment variables set in your terminal so it knows what proxy to talk to? Without that it'll just blindly try and connect direct.
My corporate proxy only fetches resources throw domain names. This means that try to get a resource by his IP address will throw an exception. For example I'm need to install a module called
bcrypt
. Tracing the process I discovered that [email protected] is trying to download this filehttps://nodejs.org/download/release/v12.13.1/node-v12.13.1-headers.tar.gz
and this results in the error:I have the theory that
node-gyp
is resolving the name and doing the request with the IP address instead the name. Can be this true? In this case exists any way to change this behavior?The text was updated successfully, but these errors were encountered: