Help us improve
Share bugs, ideas, or general feedback.
From claude-dev-toolkit
Comprehensive troubleshooting guide for diagnosing and fixing Claude Code issues across installation, runtime, and plugin systems. Use when troubleshooting Claude Code issues, fixing installation problems, resolving runtime errors, debugging plugin issues, or diagnosing configuration problems. Trigger phrases: "troubleshoot", "not working", "error", "installation issue", "permission denied", "plugin not loading", "skill not triggering", "hook not firing", "MCP server error", "WSL issue", "npm error", "command not found", "Claude Code problem", "debug", "sandbox error", "socat", "bubblewrap", "authentication issue", "API key", "context window", "search not working", "IDE not detected", "JetBrains", "ripgrep", "doctor", "reset config", "high CPU", "memory usage", "freeze", "hang", "PATH issue", "nvm conflict", "node not found", "Git Bash".
npx claudepluginhub aznatkoiny/claude-dev-toolkit --plugin claude-dev-toolkitHow this skill is triggered — by the user, by Claude, or both
Slash command
/claude-dev-toolkit:claude-code-troubleshootingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Claude Code is a powerful terminal-based AI development tool, but installation and runtime environments
Diagnoses and fixes Claude Code setup/runtime issues like API authentication (Anthropic/Bedrock/Vertex), MCP server problems, and config errors using /doctor command, verbose mode, and bash diagnostics.
Expert in using Claude Code CLI for advanced configuration, hooks, MCPs, CLAUDE.md, workflows, sub-agents, and permissions to maximize productivity.
Provides official documentation for Claude Code CLI, plugins, hooks, MCP servers, skills, configuration, and features. Use for setup, development, troubleshooting, and integrations.
Share bugs, ideas, or general feedback.
Claude Code is a powerful terminal-based AI development tool, but installation and runtime environments vary widely across platforms and configurations. This guide provides systematic approaches to diagnosing and resolving the most common issues users encounter with Claude Code.
The troubleshooting content is organized into three categories: installation issues (getting Claude Code running for the first time), runtime issues (problems that occur during normal usage), and plugin issues (problems with plugins, skills, commands, hooks, and MCP servers). Each category has a dedicated reference file with detailed solutions.
When debugging an issue, start with the symptom-based diagnosis table below to quickly identify which
reference file contains the relevant solution. For general health checks, run /doctor inside Claude Code
to get an automated diagnostic report.
claude command is not foundUse this table to quickly route from a symptom to the right solution.
| Symptom | Category | Read This |
|---|---|---|
npm errors during install, OS/platform detection failure | Installation | references/installation-issues.md |
exec: node: not found or wrong Node.js version | Installation | references/installation-issues.md |
| nvm version conflicts between WSL and Windows | Installation | references/installation-issues.md |
permission denied or EACCES errors during install | Installation | references/installation-issues.md |
command not found: claude after installation | Installation | references/installation-issues.md |
| "Claude Code on Windows requires git-bash" | Installation | references/installation-issues.md |
| "installMethod is native, but claude command not found" | Installation | references/installation-issues.md |
| "Sandbox requires socat and bubblewrap" | Runtime | references/runtime-issues.md |
| "Sandboxing requires WSL2" | Runtime | references/runtime-issues.md |
| Authentication failures, OAuth not opening | Runtime | references/runtime-issues.md |
| Repeated permission prompts | Runtime | references/runtime-issues.md |
| High CPU or memory usage | Runtime | references/runtime-issues.md |
| Claude Code hangs or freezes | Runtime | references/runtime-issues.md |
Search, @file, or custom agents/skills not working | Runtime | references/runtime-issues.md |
| Slow or incomplete search results on WSL | Runtime | references/runtime-issues.md |
| JetBrains IDE not detected on WSL2 | Runtime | references/runtime-issues.md |
| Escape key not working in JetBrains terminals | Runtime | references/runtime-issues.md |
| Missing language tags in generated markdown | Runtime | references/runtime-issues.md |
| Plugin not appearing after installation | Plugin | references/plugin-issues.md |
| Skill not triggering or command not found | Plugin | references/plugin-issues.md |
| Hook not firing on expected events | Plugin | references/plugin-issues.md |
| MCP server not starting or connection refused | Plugin | references/plugin-issues.md |
"Plugin loading error" in /plugin Errors tab | Plugin | references/plugin-issues.md |
Try these common fixes first before diving into detailed troubleshooting.
/doctor to get an automated health check of your installation# macOS, Linux, WSL
curl -fsSL https://claude.ai/install.sh | bash
# Windows PowerShell
irm https://claude.ai/install.ps1 | iex
~/.local/bin (or %USERPROFILE%\.local\bin on Windows) is in PATH:
# Check if claude is reachable
which claude
# Verify PATH includes installation directory
echo $PATH | tr ':' '\n' | grep local
node --version
which node and which npm point to Linux paths (/usr/ not /mnt/c/)/compact to reduce context size if responses are degrading/logout, closing Claude Code, then restarting with claude# macOS
brew install ripgrep
# Ubuntu/Debian
sudo apt install ripgrep
# Windows
winget install BurntSushi.ripgrep.MSVC
sudo apt-get install bubblewrap socat
/plugin Errors tab for loading issues.claude-plugin/plugin.json for valid JSON and required fields (name, description, version)--plugin-dir to load local plugins: claude --plugin-dir ./my-pluginFollow this systematic process when troubleshooting any Claude Code issue.
Determine whether the issue is an installation, runtime, or plugin problem:
claude command doesn't exist, or it crashes on first launchclaude doctor
The /doctor command checks:
Claude Code stores configuration in several locations:
| File | Purpose |
|---|---|
~/.claude/settings.json | User settings (permissions, hooks, model overrides) |
.claude/settings.json | Project settings (checked into source control) |
.claude/settings.local.json | Local project settings (not committed) |
~/.claude.json | Global state (theme, OAuth, MCP servers) |
.mcp.json | Project MCP servers (checked into source control) |
Managed file locations by platform:
/Library/Application Support/ClaudeCode//etc/claude-code/C:\Program Files\ClaudeCode\If configuration is corrupted, you can reset to defaults:
# Reset all user settings and state
rm ~/.claude.json
rm -rf ~/.claude/
# Reset project-specific settings
rm -rf .claude/
rm .mcp.json
Warning: This removes all settings, MCP server configurations, and session history.
Before seeking additional help, gather the following information:
# Check Claude Code version
claude --version
# Run health check
claude doctor
# Check Node.js version (if using npm installation)
node --version
npm --version
# Check platform info
uname -a
For plugin issues, also check:
# Validate plugin JSON
jq . /path/to/plugin/.claude-plugin/plugin.json
# Check file permissions
ls -la /path/to/plugin/
If the issue persists after troubleshooting:
/bug within Claude Code to report problems directly to Anthropicclaude doctorDifferent platforms have different common issues. Here is a quick guide to platform-specific concerns.
%USERPROFILE%\.local\binCLAUDE_CODE_GIT_BASH_PATH if Git Bash is not auto-detectedwhich node and which npm point to Linux paths, not /mnt/c/bubblewrap and socat for sandbox support (WSL2 only)/home/) for best search performancebrew install ripgrep if search is not working~/.local/bin/claude~/.local/bin to PATH in ~/.zshrc if needed/etc/claude-code/| File | Contents |
|---|---|
references/installation-issues.md | WSL npm detection, Node.js version conflicts, nvm conflicts, native installer, PATH configuration, Windows Git Bash requirement, Windows PATH issues, Linux/Mac permission errors |
references/runtime-issues.md | WSL2 sandbox setup, authentication issues, permission prompts, performance/stability, search and discovery issues, IDE integration, markdown formatting |
references/plugin-issues.md | Plugin not loading, skill not triggering, command not appearing, hook not firing, MCP server not starting, directory structure errors, debugging techniques for each component type |