--use-env-proxy


稳定性: 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.】

这相当于设置 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.】