--use-env-proxy


稳定性: 1.1 - 积极开发

¥Stability: 1.1 - Active Development

启用后,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.

这相当于设置 NODE_USE_ENV_PROXY=1 环境变量。当两者都设置时,--use-env-proxy 优先。

¥This is equivalent to setting the NODE_USE_ENV_PROXY=1 environment variable. When both are set, --use-env-proxy takes precedence.