Claude Code errors / Install

Claude Code is not supported on Windows. Claude Code requires macOS or Linux.

platform: Claude Code / category: Install

Cause

The npm preinstall script detects Windows when 'npm install' runs from a Windows-side path inside WSL, even though the shell is Linux.

Fix

Use a true WSL terminal (not PowerShell/CMD) and confirm 'uname -a' reports Linux. Ensure npm is the WSL-side binary ('which npm' under /usr/, not /mnt/c/). If npm is Windows-side, install Node natively in WSL (nvm install --lts), then reinstall: npm install -g @anthropic-ai/claude-code.

Source thread →

Part of the Automation Error Index — Claude Code errors: browse all.

Hitting an automation error we have not covered?

AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.

Describe the problem