Bug Report
Resolved 💬 3 comments Opened Aug 24, 2025 by kmshihab7878 Closed Aug 27, 2025
Bug Description
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.85
- Feedback ID: 19b83b41-b5b5-456e-9929-69c609b0e3fe
Errors
[{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///Users/khaledshihab/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-24T06:37:45.632Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///Users/khaledshihab/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-24T06:37:45.837Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///Users/khaledshihab/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-24T06:37:45.853Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///Users/khaledshihab/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-24T06:37:45.860Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///Users/khaledshihab/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-24T06:37:45.864Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///Users/khaledshihab/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-24T06:37:45.870Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///Users/khaledshihab/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-24T06:37:45.875Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///Users/khaledshihab/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-24T06:37:45.878Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///Users/khaledshihab/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-24T06:37:45.885Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///Users/khaledshihab/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-24T06:37:45.893Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///Users/khaledshihab/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-24T06:37:45.899Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///Users/khaledshihab/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-24T06:37:45.902Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///Users/khaledshihab/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-24T06:37:45.905Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at file:///Users/khaledshihab/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:940:6454","timestamp":"2025-08-24T06:37:45.908Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authT
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗