尝试登录,点了确认按钮,返回下面的错误
$ wrangler login ⛅️ wrangler 2.0.21 ——————– Attempting to login via OAuth… Opening a link in your default browser: https://dash.cloudflare.com/oauth2/auth? ….
/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:16907 throw ex; ^
TypeError: fetch failed at Object.processResponse (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:74624:34) at /usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:74946:42 at node:internal/process/task_queues:140:7 at AsyncResource.runInAsyncScope (node:async_hooks:203:9) at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { cause: TypeError [ERR_INVALID_URL]: Invalid URL at new NodeError (node:internal/errors:387:5) at URL.onParseError (node:internal/url:564:9) at new URL (node:internal/url:644:5) at parseURL (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:67336:16) at Object.parseOrigin (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:67368:14) at new Pool2 (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:71059:27) at Agent.defaultFactory (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:71212:74) at [dispatch] (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:71273:38) at Agent.dispatch (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:68859:33) at Agent.connect2 [as connect] (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:72255:14) { input: ‘null’, code: ‘ERR_INVALID_URL’ } } |