windows-subsystem-for-linux

Unable to install Claude code in Windows with WSL


I installed WSL on my Windows machine to try Claude's code. Everything is fine, but I still get an error. Has anyone faced the same issue? I have Windows 11. I have tested two distributions: Ubuntu and Almalinux-8, both of which cause the same error.

enter image description here


Solution

  • I had to install nodejs :D

    sudo apt update
    
    sudo apt install nodejs npm -y
    

    Everything works fine now, you can also install GitHub, it is optional tho.