EBADPLATFORM on ubuntu via WSL

Resolved 💬 6 comments Opened Feb 26, 2025 by rp1231 Closed Feb 26, 2025

Trying to install claude code via:

``npm install -g @anthropic-ai/claude-code``

And getting this error:

npm install -g @anthropic-ai/claude-code
npm error code EBADPLATFORM
npm error notsup Unsupported platform for @anthropic-ai/claude-code@0.2.14: wanted {"os":"!win32"} (current: {"os":"win32"})
npm error notsup Valid os:  !win32
npm error notsup Actual os: win32
npm error A complete log of this run can be found in: C:\Users\lenovo\AppData\Local\npm-cache\_logs\2025-02-26T02_05_21_879Z-debug-0.log

2025-02-26T02_05_21_879Z-debug-0.log

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗