Installation Command
The global npm install command for Claude Code and the prerequisite Node.js version check. Claude Code is installed once and available as the `claude` command in any terminal including Windows PowerShell.
Syntax
claude-code
// Check Node.js version (18+ required)
node --version
// Install Claude Code globally
npm install -g @anthropic-ai/claude-code
// Verify installation
claude --version
claude --helpExample
claude-code
// Windows PowerShell — if claude command not found after install:
npm config get prefix
// Add the output directory to your system PATH
// Then allow script execution:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
// Verify:
claude --version
// > claude 1.x.x