消息推送Windows 下让 Node 脚本稳定走 Clash 代理的几个坑,记录一下6天前Windows 下让 Node 脚本稳定走 Clash 代理的几个坑,记录一下🌐 链接: https://linux.do/t/topic/3037284🏷️ 分组: LinuxDo论坛🕒 时间: 2026-10-17 17:55:00 LINUX DO Windows 下让 Node 脚本稳定走 Clash 代理的几个坑,记录一下 最近在写点 Node 小脚本,本机 Windows + Clash,代理这块反复折腾,把踩过的坑记下来给有需要的人。 内置 fetch(undici)不认系统代理。HTTP_PROXY 设了也没用,得自己挂 ProxyAgent: import { ProxyAgent } from 'undici' const agent = new ProxyAgent('http://127.0.0.1:7897') fetch(url, { dispatcher: agent }) axios 倒是认 HTTPS_PROXY… 6天前