@
XTTX 感谢回复,按照配置我在 ~/.zshrc 设置了 veee 的代理
# HTTPS proxy (recommended)
export HTTPS_PROXY=https://localhost:15236
# HTTP proxy (if HTTPS not available)
export HTTP_PROXY=http://localhost:15236
且在 cli 中执行 lsof -i :15236 和 curl -x http://localhost:15236
https://www.google.com -v 都能得到预期结果连接是通的,但是执行 claude 还是有报错:
$ claude
╭──────────────────────────╮
│ ✻ Welcome to Claude Code │
╰──────────────────────────╯
node:events:496
throw er; // Unhandled 'error' event
^
Error: Client network socket disconnected before secure TLS connection was established
at TLSSocket.onConnectEnd (node:_tls_wrap:1727:19)
at TLSSocket.emit (node:events:530:35)
at TLSSocket.emit (node:domain:488:12)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on TLSSocket instance at:
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'ECONNRESET',
path: undefined,
host: 'localhost',
port: 15236,
localAddress: undefined
}
Node.js v20.12.2