Sort a messy folder
"Look at my Downloads folder. Move all the PDFs into a folder called 'pdfs', all the images into 'images', and tell me what's left."
A clear, step-by-step tutorial for installing Claude Code on a Windows PC. Written for people who have never opened a terminal before. Six steps, about fifteen minutes, no prior experience required.
("Hello, World" is the first program every coder writes. This is the human version — same idea, with help.)
Claude Code is Claude that runs in a small terminal window on your computer. Same Claude as the chat at claude.ai — but with new abilities. The web chat can answer questions. Claude Code can also read and write files on your machine, run commands, work step-by-step on real tasks across many turns, and remember context. If you've ever wanted Claude to do something, not just describe how to do it, this is the version that does that.
You don't need to be a programmer. People use Claude Code to organize folders, edit documents, clean up photo libraries, manage receipts, write blog posts that span multiple files, automate repeating chores. The terminal looks intimidating; the experience is just chat.
Each step is one thing to download, click, or paste. If something fails, the troubleshooting section below has the fix.
irm https://claude.ai/install.ps1 | iex
Open PowerShell (Win key → type "powershell" → Enter), paste, hit Enter, then type claude. Jump to the Quick Install section for a fuller walk-through. The six-step Node/npm path below still works and is the gentler walk-through for first-time terminal users.
Node.js is the engine that runs Claude Code. You install it once and never think about it again.
Git for Windows comes bundled with a terminal program called Git Bash. That's the window where Claude Code will live. We're installing Git mostly to get Git Bash — you don't need to learn Git itself.
Time to meet the terminal. Don't worry — it's just a window where you paste things.
npm command in this step comes bundled inside the Node.js installer from step 1 — there is no separate npm download, and you cannot skip step 1. If you did skip it, you'll see bash: npm: command not found.
npm --version and press Enter. If it prints a number (like 10.8.2), continue below. If it says "command not found", go back and finish step 1, then close and reopen Git Bash — PATH won't refresh in an existing window.
Copy the line below, paste it into your Git Bash window, press Enter. To paste in Git Bash, right-click anywhere inside the window — or use Shift+Insert. Plain Ctrl+V doesn't work in Git Bash.
npm install -g @anthropic-ai/claude-code
What you'll see next, in order:
npm warn lines about deprecated packages. These warnings are normal. Nothing is broken. They scroll past quickly.$ prompt comes back on a fresh line. That means the install finished. The result will look something like this:If the prompt comes back without the word error in red anywhere, you're done with this step. If you DO see "error" in red, jump to the troubleshooting section below.
Type the word below into Git Bash and press Enter:
claude
On your first run, Claude Code shows a few setup screens before the chat opens. Roughly in this order:
After all the setup, the screen settles into something like this:
claude in any Git Bash window and you're straight back in.
Claude Code is now waiting for input. Type something normal — not a "prompt," just a sentence — and press Enter:
What can you do that the chat at claude.ai can't?
Claude will reply right in your terminal. You can keep typing follow-up messages. Now give it a real task that touches your computer:
Make a folder called "claude-test" on my Desktop, and put a file in it called hello.txt that says "Hello, Claude."
Before Claude Code touches anything — creating a file, running a command, editing your work — it pauses and asks. The screen looks something like this:
Three rules for these prompts:
Pick Yes the first few times so you can see what happens. Switch to your Desktop. The folder and file appear. That's the part the web chat at claude.ai can't do.
claude, all permissions reset.
The path Anthropic now recommends. Native installer, no Node, no npm. Self-updates in the background. Works on any Windows 10 or 11.
PowerShell is built into every Windows 10/11 PC. Nothing to install.
PS C:\Users\you> prompt. Leave it open.Right-click anywhere in the PowerShell window to paste. Then press Enter.
irm https://claude.ai/install.ps1 | iex
You'll see a few lines about downloading and installing. When the PS C:\ prompt comes back, the install is done.
winget install Anthropic.ClaudeCode instead. Same result.
In the same PowerShell window, type:
claude
First run opens your browser to sign in (use the same Anthropic account you'd use at claude.ai). Approve, return to PowerShell, and the chat prompt appears. From now on, just type claude in any PowerShell or Git Bash window to start.
claude command. Pick the one that feels easier.
Anything that involves files, folders, or repetitive computer chores. A few starting ideas:
"Look at my Downloads folder. Move all the PDFs into a folder called 'pdfs', all the images into 'images', and tell me what's left."
"Open my draft.txt, fix the grammar, tighten the language, and save it as draft-v2.txt."
"Open expenses.csv, group rows by category, add a totals row at the bottom, and save it back."
"Rename all the IMG_xxxx.jpg files in this folder to 'vacation-001.jpg', 'vacation-002.jpg', and so on."
"Write a 5-chapter outline for my book idea. Put each chapter in its own .md file in a folder called 'book'."
"Every time I save a file in my 'screenshots' folder, rename it from 'Screenshot 2026-04-28...' to today's date and move it into a dated subfolder."
Inside Claude Code, anything that starts with a slash is a command for the program (not a message to Claude). The handful below cover most of what you'll need on day one:
/helpShow every built-in command./clearStart a fresh conversation. Clears the current context so Claude isn't distracted by what you talked about earlier./costShow usage information for the current session./loginSign in again, or switch accounts./exitClose Claude Code. (Or just close the Git Bash window.)Before you type claude, you can move into a folder you want to work in. That folder becomes Claude's "working directory" — the place it'll create and edit files unless you tell it otherwise. Example:
cd Desktop/my-book-project
claude
Now Claude operates inside that folder. To go back up one level, type cd ... To go to your home folder, just type cd by itself. That's 90% of folder navigation.
Node.js installed but Git Bash didn't pick it up. Close Git Bash and open it again. New terminal windows see the new Node.js install; older ones don't. If that doesn't fix it, restart the computer and try once more.
Almost always a network or permission issue. Try these in order:
That's normal. After you sign in on the web page, you have to switch back to the Git Bash window — it's been waiting for you. Look for it in your taskbar.
Good. That's the safety design. Each "yes/no" prompt is Claude telling you exactly what it's about to do before it does it. After you trust it for a particular task, you can pick "yes, and don't ask again for this kind of thing."
Beginners often think there's a magic phrasing. There isn't. Talk to Claude the way you'd talk to a smart friend who's missing context. "Hey, I'm trying to figure out X. Here's what I know, here's what I'm stuck on. What would you do?" works as well as anything fancier.
If you have a file, point at it: "Read my-essay.txt and tell me what you think." If you have an example you want imitated, paste it in. Claude is much better with concrete examples than abstract descriptions.
"That's close, but make it shorter." "Try again, but more formal." "Actually, the situation is different: ..." Claude isn't graded on its first answer — it expects to iterate. Use that.
Type /clear when you switch from "edit my essay" to "sort my Downloads folder." Old context can confuse new tasks.
You don't need any of these on day one. They're here for the moment you find yourself thinking "okay, I want to go further."
Install Node, install Git, paste one line, sign in, type a sentence. Welcome to Claude.
Start with Node.js →