Running into issues? Find solutions for installation errors, permission problems, connection failures, and WSL-specific fixes. Most problems have quick fixesβstart with /doctor to diagnose common issues automatically.
Run multiple autonomous coding agents simultaneously with Verdent's isolated Git worktrees. Each agent tackles different components while maintaining full context awareness, eliminating manual debugging bottlenecks and accelerating feature delivery. Discover Verdent AI (Free Trial)
Installation Issuesβ
Node.js Version Problemsβ
Problem: Claude Code installation fails with Node.js version errors Solution:
- Check your Node.js version:
node --version - Claude Code requires Node.js 18.0 or higher
- Update Node.js from nodejs.org
- Restart your terminal after installation
- Retry Claude Code installation
Permission Errors During Installationβ
Problem: "Permission denied" or "EACCES" errors during npm install Solution:
For macOS/Linux:
# Fix npm permissions
sudo chown -R $(whoami) ~/.npm
# Or install with sudo (not recommended)
sudo npm install -g @anthropic-ai/claude-code
For Windows:
# Run Command Prompt as Administrator
npm install -g @anthropic-ai/claude-code
Installation Hangs or Times Outβ
Problem: Installation process freezes or network timeouts Solution:
- Check internet connection
- Try with different npm registry:
npm install -g @anthropic-ai/claude-code --registry https://registry.npmjs.org/
- Clear npm cache:
npm cache clean --force - Restart and retry installation
Authentication and Configuration Issuesβ
API Key Problemsβ
Problem: "Invalid API key" or authentication failures Solution:
- Verify API key at console.anthropic.com
- Reconfigure Claude Code:
claude config - Check environment variables:
echo $ANTHROPIC_API_KEY
- Ensure no extra spaces or characters in API key
Subscription Authentication Issuesβ
Problem: Can't authenticate with Claude Max/Pro subscription Solution:
- Ensure you're logged into the correct Claude account
- Clear browser cookies and retry authentication
- Use incognito/private browsing mode
- Contact Anthropic support if subscription isn't recognized
Configuration File Problemsβ
Problem: Claude Code ignores configuration settings Solution:
- Check configuration file location:
~/.claude.json - Verify JSON syntax is valid
- Reset configuration:
claude config --reset - Manually edit
~/.claude.jsonif needed
Connection and Network Issuesβ
Claude Code Not Respondingβ
Problem: Claude Code starts but doesn't respond to commands Solution:
- Restart Claude Code - Exit and restart the application
- Check internet connection - Test with other websites
- Verify API status - Check status.anthropic.com
- Clear session - Use
/clearcommand to start fresh - Update Claude Code - Run
npm update -g @anthropic-ai/claude-code
503 Service Unavailable Errorsβ
Problem: Getting "503 no healthy upstream" errors Solution:
- Wait 2-5 minutes - These are temporary server issues
- Check service status - Visit status.anthropic.com
- Don't reinstall - This won't fix server-side problems
- Try again later - Server issues usually resolve quickly
Internal Server Errorsβ
Problem: "Internal server error" messages Solution:
- Wait 1-3 minutes - Backend processing issues resolve automatically
- Don't change configuration - This is a server-side problem
- Check community reports - Visit r/ClaudeAI for widespread issues
- Avoid reinstalling - Won't help with server problems
Performance Issuesβ
Slow Response Timesβ
Problem: Claude Code responses are very slow Solution:
- Switch models - Try Claude Sonnet 4.6 for better speed
- Reduce context - Use
/compactto summarize conversation - Smaller files - Break large files into smaller components
- Native platform - Use Linux/macOS instead of WSL when possible
- Adequate RAM - Ensure 16GB+ RAM for optimal performance
High Memory Usageβ
Problem: Claude Code consuming too much system memory Solution:
- Restart Claude Code regularly for long sessions
- Use
/clearto reset conversation history - Close other applications to free up RAM
- Monitor usage with system activity monitor
- Consider upgrading RAM if consistently hitting limits
Context Window Issuesβ
Problem: "Context window full" or memory limit errors Solution:
- Use
/compactwith specific instructions:
/compact keep only the main function names and error messages
- Start fresh with
/clearcommand - Smaller chunks - Work on one feature at a time
- Sub-agents - Use Task tool for parallel processing
- File organization - Use many small files instead of large ones
Platform-Specific Issuesβ
Windows WSL Problemsβ
Problem: Claude Code performance issues on Windows WSL Solution:
- Update WSL2:
wsl --update - Optimize WSL memory - Configure
.wslconfig:
[wsl2]
memory=8GB
processors=4
- Use Windows Terminal for better performance
- Store files in Linux filesystem (
/home/not/mnt/c/) - Consider native Linux for best performance
VS Code Integration Issuesβ
VS Code Extension (Beta) Problems
Problem: Extension not installing or appearing in VS Code Solution:
- Check VS Code version - Requires VS Code 1.98.0 or higher:
code --version - Update VS Code - Download latest from code.visualstudio.com
- Install from marketplace - Visit VS Code Marketplace
- Check extension permissions - Ensure VS Code can install extensions
- Try installing directly - Download VSIX file from marketplace website
Problem: Extension installed but Spark icon not appearing Solution:
- Restart VS Code completely (close all windows)
- Check activity bar - Ensure activity bar is visible (View > Appearance > Activity Bar)
- Look for Claude Code - The Spark icon should appear in the activity bar
- Reload window - Open command palette (
Cmd+Shift+P/Ctrl+Shift+P) and run "Developer: Reload Window" - Reinstall extension - Uninstall and reinstall from marketplace
Problem: Extension update not working Solution:
- Use command palette -
Cmd+Shift+P(Mac) /Ctrl+Shift+P(Windows/Linux) - Search for - "Claude Code: Update"
- Manual update - Uninstall and reinstall extension from marketplace
- Check auto-update - Ensure VS Code auto-update for extensions is enabled
- Restart VS Code - Close and reopen after update
Problem: Third-party provider (Bedrock/Vertex) authentication failing Solution:
- Open VS Code settings - Search "Claude Code: Environment Variables"
- Verify environment variables:
CLAUDE_CODE_USE_BEDROCK="1"for BedrockCLAUDE_CODE_USE_VERTEX="1"for Vertex AIANTHROPIC_API_KEY="your-api-key"
- Check API key - Ensure no extra spaces or quotes in key
- Verify AWS/GCP credentials - For Bedrock/Vertex, ensure cloud credentials are configured
- Restart VS Code - Changes to environment variables require restart
Problem: Extension features not working (plan mode, auto-accept, etc.) Solution:
- Check extension version - Ensure you have the latest version
- Review console logs - Open Developer Tools (
Help > Toggle Developer Tools) - Check for errors - Look for Claude Code errors in Console tab
- Reset extension - Uninstall, restart VS Code, reinstall extension
- File an issue - Report to Claude Code GitHub
Legacy CLI Integration Problems
Problem: Claude Code legacy CLI integration not working Solution:
- Ensure running in VS Code terminal - Use VS Code's integrated terminal
- Check IDE CLI command:
- VS Code:
code --versionshould work - Cursor:
cursor --versionshould work - Windsurf:
windsurf --versionshould work - VSCodium:
codium --versionshould work
- VS Code:
- Install IDE CLI:
- Open command palette:
Cmd+Shift+P(Mac) /Ctrl+Shift+P(Windows/Linux) - Search: "Shell Command: Install 'code' command in PATH"
- Select and install
- Open command palette:
- Use
/idecommand - From external terminal to connect - Verify file paths - Ensure working in correct directory
Problem: File reference shortcuts not working Solution:
- Check keyboard shortcuts:
- Mac:
Cmd+Option+K - Windows/Linux:
Alt+Ctrl+K
- Mac:
- Verify VS Code focus - Ensure VS Code window is active
- Check for conflicts - Other extensions may override shortcuts
- Reconfigure keybindings - Go to File > Preferences > Keyboard Shortcuts
- Restart VS Code - Changes may require restart
File and Project Issuesβ
Permission Denied on File Operationsβ
Problem: Can't read/write files in project directory Solution:
- Check file permissions:
ls -la - Fix ownership:
sudo chown -R $(whoami) . - Verify directory access - Ensure Claude Code can access project folder
- Use
--add-dirflag for multiple directories - Configure allowed tools in
~/.claude.json
Large File Handling Problemsβ
Problem: Claude Code struggles with large files Solution:
- Split large files into smaller, logical components
- Use specific ranges when reading large files
- Exclude build artifacts - Don't process generated files
- Focus requests - Ask about specific functions, not entire files
- Create summaries of large codebases in CLAUDE.md
Model and Feature Issuesβ
Model Switching Problemsβ
Problem: Can't switch between Claude models Solution:
- Use correct syntax:
claude --model claude-sonnet-4-6 - Check subscription - Ensure access to requested model
- Restart session after model change
- Verify model names - Use exact model identifiers
- Update Claude Code - Newer versions support more models
Sub-agent Issuesβ
Problem: Sub-agents not working or hanging Solution:
- Check internet connection - Sub-agents need network access
- Simplify tasks - Break complex requests into smaller parts
- Monitor progress - Look for flashing bubbles in UI
- Manual tasks - Do critical work in main thread
- Restart if stuck - Exit and restart Claude Code
Advanced Troubleshootingβ
Complete Reset Procedureβ
If all else fails, try a complete reset:
- Uninstall Claude Code:
npm uninstall -g @anthropic-ai/claude-code
- Remove configuration:
rm ~/.claude.json
rm -rf ~/.claude/
- Clear npm cache:
npm cache clean --force
- Reinstall fresh:
npm install -g @anthropic-ai/claude-code
claude config
Log Collection for Supportβ
To get help from support, collect these details:
- Claude Code version:
claude --version - Node.js version:
node --version - Operating system:
uname -a(Linux/Mac) orver(Windows) - Error messages - Copy exact error text
- Configuration - Share
~/.claude.json(remove API keys)
Getting Additional Helpβ
Community Resourcesβ
- Reddit: r/ClaudeAI for community support
- Awesome Claude Code: GitHub repository for tools and tips
- Status page: status.anthropic.com for service updates
Official Supportβ
- Documentation: docs.anthropic.com
- Console: console.anthropic.com for API issues
- Contact: Use official Anthropic support channels for account problems
Prevention Tipsβ
- Keep updated - Regularly update Claude Code and Node.js
- Monitor status - Check service status before major sessions
- Backup configuration - Save working
~/.claude.jsonfiles - Test changes - Verify configuration changes in small projects first
- Regular restarts - Restart Claude Code periodically in long sessions
Run multiple autonomous coding agents simultaneously with Verdent's isolated Git worktrees. Each agent tackles different components while maintaining full context awareness, eliminating manual debugging bottlenecks and accelerating feature delivery. Discover Verdent AI (Free Trial)
See Also: Installation Guide|Configuration|Getting Started|Windows Installation|FAQ
This troubleshooting guide covers the most common Claude Code issues. For additional help, check the community resources above.
