Closed HispidaBytes closed 1 year ago
I learned that the yo
scaffolding tool uses a global HTTP agent: https://www.npmjs.com/package/global-agent that replaces the one we use in the VSCode generator (which would read HTTPS_PROXY)
It uses different environment variables: https://www.npmjs.com/package/global-agent#environment-variables
So you need to set GLOBAR_AGENT_HTTPS_PROXY=..
Or stick with HTTPS_PROXY
and disable the global agent: GLOBAL_AGENT_FORCE_GLOBAL_AGENT=false
I learned that the yo
scaffolding tool uses a global HTTP agent: https://www.npmjs.com/package/global-agent that replaces the one we use in the VSCode generator (which would read HTTPS_PROXY)
It uses different environment variables: https://www.npmjs.com/package/global-agent#environment-variables
So you need to set GLOBAR_AGENT_HTTPS_PROXY=..
Or stick with HTTPS_PROXY
and disable the global agent: GLOBAL_AGENT_FORCE_GLOBAL_AGENT=false
This was helpful!
Alternatively, one can set GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE
to a blank value, which will pull in the system HTTP_PROXY
and HTTPS_PROXY
variables.
Hi,
I'm having an issue with this generator on a Windows machine inside a corporate network. The generator is showing the following error:
The proxy is correctly configured by using the
HTTP_PROXY
andHTTPS_PROXY
environment variables. Upon further investigation it does seem that the proxy server is not actually used when doing a HTTP connect to https://update.code.visualstudio.com. A procmon log is showing that thenode.exe
executable is trying to do an HTTP connect directly on the website IP address instead of relying on the proxy server.If I try to run the following command on powershell I do get a valid result:
Invoke-WebRequest https://update.code.visualstudio.com/api/releases/stable
That URL is also accessible via a browser configured with the same proxy server.