Trying to npm install -g @anthropic-ai/claude-code on an AMD Ryzen based system
Status Fixed / completed
Maintainer reply ✓ Yes — igorkofman
Activity 6 comments · opened Feb 26, 2025 · closed Mar 6, 2025
💡 Likely answer: A maintainer (igorkofman, collaborator)
responded on this thread — see the highlighted reply below.
I have tried this on windows 11 powershell and also WSL2 / Ubunut.
I have an AMD Ryzen based Windows 11 environment and when I try to:
npm install -g @anthropic-ai/claude-code
I get the following error:
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\david\AppData\Local\npm-cache\_logs\2025-02-26T09_14_00_720Z-debug-0.log
6 Comments
Getting Same error
I also encountered this error. Try following these steps:
After shutdown
````
x@XXX:/mnt/c$ 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
````
OK .
install success 👯
Having the same issue here:
I'm using Windows 11
My CPU is an AMD Ryzen 5 5500
solution here https://github.com/anthropics/claude-code/issues/113#issuecomment-2685686286
The newest version (v0.2.18) has improved instructions for WSL usage. Closing this out -- feel free to open a new issue if you get stuck.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.