Common issues and solutions for Claude Code installation, authentication, performance, and IDE integration. Use when user encounters errors, problems, or asks about debugging.
Provides solutions for Claude Code installation, authentication, performance, and IDE integration issues. Use when users encounter errors, permission problems, or ask about debugging specific error messages.
/plugin marketplace add reggiechan74/claude-plugins/plugin install claude-code-metaskill@claude-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
OS/platform detection issues:
May require running npm config set os linux before installation.
Node.js path conflicts: WSL may use Windows npm instead of Linux versions.
which npm and which nodeRecommended Solution: Use the native Claude Code installer as an alternative to npm:
curl -fsSL https://claude.ai/install.sh | bash
Native installer (recommended):
curl -fsSL https://claude.ai/install.sh | bash
Migration from npm: Migrate to local installation to avoid future permission issues:
claude migrate-installer
Run /logout and restart Claude Code to reset authentication.
For persistent issues, remove stored auth data:
rm -rf ~/.config/claude-code/auth.json
Use /permissions to allow specific tools without repeated approval prompts.
Use /compact regularly to reduce context size for large codebases.
Press Ctrl+C to cancel unresponsive operations.
Install system ripgrep to fix search functionality:
# macOS
brew install ripgrep
# Ubuntu/Debian
sudo apt install ripgrep
# Fedora
sudo dnf install ripgrep
Firewall Issues: Configure Windows Firewall or enable mirrored networking mode.
Add to .wslconfig:
[wsl2]
networkingMode=mirrored
Go to Settings → Tools → Terminal and disable "Move focus to the editor with Escape."
Or delete the "Switch focus to Editor" shortcut.
Request language tags explicitly:
"Add appropriate language tags to all code blocks."
Use formatting hooks for automatic post-processing validation.
Solution:
npm list -g @anthropic-ai/claude-codeSolution:
/logout then /loginrm -rf ~/.config/claude-code/auth.jsonSolution:
/permissions to configure allowed operationsSolution:
/compact to reduce context/clearSolution:
--max-turns to limit operationsReport bugs:
/bug
Check installation health:
/doctor
Enable verbose logging:
claude --debug
claude --verbose
View detailed output:
claude --output-format json
If all else fails, completely reinstall:
# Uninstall
npm uninstall -g @anthropic-ai/claude-code
# Clear cache
rm -rf ~/.config/claude-code
rm -rf ~/.claude
# Reinstall
npm install -g @anthropic-ai/claude-code
# Or use native installer
curl -fsSL https://claude.ai/install.sh | bash
claude update/compact for large projects