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.

Answer from Don Feto on Stack Overflow
🌐
Reddit
reddit.com › r/claudeai › install claude code on windows without wsl
r/ClaudeAI on Reddit: Install claude code on windows without WSL
June 16, 2025 -

Step 1: Open cmd

Open cmd as administrator

Step 2: Set NPM configuration, telling npm to ignore executing scripts in packages during installation (e.g., preinstall, postinstall, etc.)

setx NPM_CONFIG_IGNORE_SCRIPTS true

$env:NPM_CONFIG_IGNORE_SCRIPTS = “true”

Step 3: Configure the SHELL environment variable

setx SHELL "C:\Program Files\Git\bin\bash.exe"

Step 4: Install Claude Code

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

Step 5: Add to Environment Variables

Add this line to your environment variables: C:\Users\y.xie\.npm-global

Step 6: Restart the development environment

Restart CMD or your IDE (e.g., VS Code, IntelliJ IDEA), then log in to your Claude Code account or configure the API directly within the application to start using it.

Supplementary Notes

  • Ensure Git for Windows is installed, with the path being C:\Program Files\Git\bin\bash.exe.

  • If the Git installation path is different, please adjust the SHELL environment variable path accordingly.

  • The path C:\Users\y.xie\.npm-global should also be added based on your actual path.

  • It is recommended to set these variables permanently to avoid having to reconfigure after each restart.

  • Later, if you want to uninstall and revert the changes from Step Two and Step Three, just execute setx NPM_CONFIG_IGNORE_SCRIPTS false and setx SHELL "".

🌐
Smartscope
smartscope.blog › en › generative-ai › claude › claude-code-windows-native-installation
Claude Code Windows Install: No WSL Required (3min PowerShell Setup) - SmartScope
Native Windows Claude Code installation in 3min. No WSL, runs in PowerShell. Auto Node.js/Git setup, clipboard image paste fix. Step-by-step guide 2025.
🌐
GitHub
github.com › somersby10ml › win-claude-code
GitHub - somersby10ml/win-claude-code: Claude Code for Windows: No WSL. No Docker. Just code.
Claude Code meets Windows. No more "WSL required" errors, just pure productivity. # Install Claude Code globally npm install -g @anthropic-ai/claude-code --ignore-scripts # Run it npx win-claude-code@latest
Starred by 224 users
Forked by 20 users
Languages   JavaScript
🌐
Shukebeta
blog.shukebeta.com › 2025 › 06 › 25 › running-claude-code-on-windows-without-wsl
Running Claude Code on Windows Without WSL | Scribbles for my bad memory
Git Bash provides enough Unix-like environment for Claude Code. The SHELL export tells it where to find bash, and NPM_CONFIG_IGNORE_SCRIPTS prevents install script issues. This is a workaround, not official support. Works fine in my vm, let me know if it also works on your machine!
🌐
YouTube
youtube.com › watch
Install Claude Code on Windows (Without WSL) | Step-by-Step Guide - YouTube
Want to use Claude Code on Windows without WSL? 🚀In this video, I’ll walk you through the step-by-step process of installing and running Claude Code on Wind...
Published   August 19, 2025
🌐
Ctok
ctok.ai › 首页 › windows installation guide for claude code (no wsl)
Windows Installation Guide for Claude Code (No WSL) | Ctok Claude Code Group Subscription - Claude Code, Gemini, Codex
Step-by-step guide to install and run Claude Code on Windows without WSL: Node.js setup, npm installation, GUI environment variables, and first run.
🌐
Medium
muhammadtriwibowo.medium.com › how-to-install-claude-code-using-z-ai-glm-4-6-in-windows-without-wsl-be933023a7f5
How to install and integrate Claude Code with Z.AI GLM 4.6 on Windows (without WSL) | by Muhammad Tri Wibowo | Medium
October 7, 2025 - If you’re a pure Windows user and prefer not to install WSL, this guide is for you. Here’s how to set up and run Claude Code using GLM 4.6 directly on Windows.
Find elsewhere
🌐
Reddit
reddit.com › r/claudeai › made claude code work natively on windows
r/ClaudeAI on Reddit: Made Claude Code work natively on Windows
July 7, 2025 -

Just shipped win-claude-code - a wrapper that lets you run Anthropic's Claude Code directly on Windows without WSL.

npm install -g anthropic-ai/claude-code --ignore-scripts
npx win-claude-code@latest

That's it. Works with PowerShell, CMD, Windows Terminal - whatever you prefer.

Built this because I got tired of WSL setup just to use Claude Code. Figured other Windows devs might find it useful too.

GitHub: https://github.com/somersby10ml/win-claude-code

Would love feedback if anyone tries it out! 🚀

🌐
Kothari Techno Trick
kotharitechnotrick.com › claude-code-in-windows-without-wsl
Claude Code in Windows without WSL - Kothari Techno Trick
July 12, 2025 - After completing the setup, you can simply run the claude command from any terminal on your Windows machine — whether it’s Command Prompt, PowerShell, GitBash, or the terminal inside IntelliJ IDE.
🌐
Medium
medium.com › @WalterSchaerer › from-zero-to-prompting-setting-up-claude-code-on-your-windows-machine-710a32785bee
From Zero to Prompting: Setting Up Claude Code on Your Windows Machine | by Walter Schärer | Medium
July 18, 2025 - Below is a step-by-step guide to get started on Microsoft Windows (on iOS and Linux Claude Code runs natively, you don’t need the WSL step). To begin, enable WSL by opening your Windows PowerShell (cmd) as administrator and running the command ... ...
🌐
ClaudeLog
claudelog.com › home › faqs › download claude code for windows
Download Claude Code for Windows | ClaudeLog
Download Claude Code for Windows: Native installation via PowerShell or CMD - no WSL2 required. Also supports WSL2 for Linux-based workflows.
🌐
Claude
claude.ai › public › artifacts › 03a4aa0c-67b2-427f-838e-63770900bf1d
Claude Code Installation Guide for Windows 11
Claude Code is Anthropic's official AI-powered coding assistant that runs in your terminal, but it requires Windows Subsystem for Linux (WSL2) to work on Windows 11 - it cannot run natively on Windows. This terminal-based tool integrates directly with your development environment to assist ...
🌐
GitHub
github.com › anthropics › claude-code › issues › 151
but how to install on windows · Issue #151 · anthropics/claude-code
February 26, 2025 - but how to install on windows there is video how to install but only on linux https://www.youtube.com/watch?v=-9I8SQfBRTU
Published   Feb 26, 2025
🌐
Reddit
reddit.com › r/claudeai › this is how i managed to run claude code on windows with proper ide support
r/ClaudeAI on Reddit: This is how I managed to run Claude Code on Windows with proper IDE support
June 10, 2025 -

Hello,

I was struggling to get Claude Code working on Windows with my .NET projects while maintaining proper IDE support. The core problem is that Claude Code requires WSL to run on Windows. If you copy your project files into a WSL folder, you lose crucial IDE integration.

Here's the correct way to do it without copying your code into a WSL folder (if you weren't already aware, like me!):

  1. Open your favorite IDE and your project.

  2. Open the terminal within your IDE.

  3. Navigate to your project directory (e.g., C:\MyProject).

  4. Type the following command: wsl claude

Enjoy!

🌐
Arsturn
arsturn.com › blog › claude-code-windows-mac-setup-guide
Guide to Claude Code on Windows (WSL) & Mac (Parallels)
& all its tools, while still being on Windows. It's the best of both worlds. Here's how to build the ultimate Claude-powered dev setup on Windows. ... If you want to keep things simple, you don't even need WSL. Install VS Code: If you haven't already, grab it from the official site.
🌐
Claude
claude.ai › public › artifacts › 8ad38c46-8b37-4f75-99ab-6f695ccac6f4
Complete Guide: Installing Claude Code on Windows 10
Claude Code doesn't work directly on Windows - it needs something called WSL (Windows Subsystem for Linux)
🌐
phpFashion
phpfashion.com › en › how-to-install-claude-code-beginners-guide
How to Install Claude Code: A Beginner's Guide » phpFashion
This beginner's guide will walk you through installing Claude Code from scratch. Future articles will cover practical usage, but first we need to get the fundamentals working.
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Claude Code Extension for Visual Studio - Visual Studio Marketplace
Extension for Visual Studio - A Visual Studio .NET extension that provides a better interface for Claude Code CLI with support for multi-line prompts and image attachments. Open AI Codex, Cursor Agent and Qwen Code also supported.