NODE_USE_ENV_PROXY=1


稳定性: 1.1 - 处于活跃开发中

启用时,Node.js 会在启动时解析 HTTP_PROXYHTTPS_PROXYNO_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.】