NODE_USE_ENV_PROXY=1
稳定性: 1.1 - 积极开发
¥Stability: 1.1 - Active Development
启用后,Node.js 会在启动期间解析 HTTP_PROXY、HTTPS_PROXY 和 NO_PROXY 环境变量,并通过指定的代理隧道传输请求。
¥When enabled, Node.js parses the HTTP_PROXY, HTTPS_PROXY and NO_PROXY
environment variables during startup, and tunnels requests over the
specified proxy.
也可以使用 --use-env-proxy 命令行标志启用此功能。当两者都设置时,--use-env-proxy 优先。
¥This can also be enabled using the --use-env-proxy command-line flag.
When both are set, --use-env-proxy takes precedence.