Claude Code Native Installer: Install Without Node.js (PowerShell, Bash, Homebrew)
Install Claude Code with irm https://claude.ai/install.ps1 | iex on Windows or curl install.sh on Mac/Linux. No Node.js required. Simpler, faster, auto-updates.
Problem: Installing Claude Code through npm required Node.js 18+, caused PATH issues, and broke on certain platforms. The native installer fixes all of this with a single command that works everywhere.
Quick Start: One Command Install
Windows PowerShell:
macOS / Linux / WSL:
Homebrew (macOS/Linux):
That's it. No Node.js. No npm. No PATH configuration. Run claude --version to verify.
Why the Native Installer Is Better
Anthropic released the native installer as the recommended installation method for all Claude Code users. Here's why:
| Feature | Native Installer | npm Install |
|---|---|---|
| Requires Node.js | No | Yes (v18+) |
| Auto-updates | Yes (background) | No (manual) |
| PATH setup | Automatic | Often broken |
| Platform support | Windows, macOS, Linux, WSL | Varies |
| Stability | Production-tested | Platform-dependent |
The native installer handles everything automatically: downloads the right binary for your system, sets up PATH, and keeps Claude Code updated in the background.
Windows: irm https://claude.ai/install.ps1 | iex
The PowerShell command irm https://claude.ai/install.ps1 | iex does three things:
- irm (Invoke-RestMethod) downloads the install script from Anthropic
- | pipes the script content to the next command
- iex (Invoke-Expression) executes the downloaded script
Run as Administrator for cleanest install:
Alternative for CMD users:
WinGet option:
Note: WinGet doesn't auto-update. The native installer is preferred.
macOS and Linux: curl https://claude.ai/install.sh | bash
The bash installer works identically across macOS, Linux, and WSL:
The -fsSL flags mean:
- f: Fail silently on HTTP errors
- s: Silent mode (no progress bar)
- S: Show errors if they occur
- L: Follow redirects
Verify and start:
Troubleshooting
"irm is not recognized" (Windows)
You're in CMD, not PowerShell. Open PowerShell and run the command there.
"Execution policy" error (Windows)
PowerShell may block scripts by default:
"command not found" after install
Close and reopen your terminal to reload PATH, then try claude --version again.
Already have npm version installed?
Uninstall the npm version first:
Then run the native installer.
What Happens After Install
Once Claude Code is installed:
- Run
claudein any project directory - Complete one-time authentication with your Anthropic account
- Start coding with AI
New to Claude Code? Follow the first project tutorial to see it in action. Need more installation options? See the complete installation guide.
The native installer was announced in October 2025 as Anthropic's recommended method. It's simpler, more stable, and keeps you updated automatically. No Node.js required.
Last updated on