Getting started
Node.js Installation Guide
Install Node.js on Windows, macOS or Linux, verify npm, and prepare your environment for AI command-line clients.
Install Node.js LTS on Windows, macOS or Linux, then verify that node and npm are available.
💡 The npm installation methods for Claude Code, Gemini CLI and Codex require Node.js. Complete this guide before setting up those clients.
Windows
Option 1: Official installer (recommended)
Visit Node.js website, download the LTS installer, and follow the installation prompts.
Option 2: Chocolatey
CMD / PowerShell
1choco install nodejs-ltsOption 3: Scoop
CMD / PowerShell
1scoop install nodejs-ltsmacOS
Option 1: Homebrew (recommended)
BASH
1brew install nodeOption 2: Official installer
Visit Node.js website and download the macOS installer.
Linux
Ubuntu / Debian:
BASH
1curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -2sudo apt-get install -y nodejsCentOS / RHEL:
BASH
1curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -2sudo yum install -y nodejsVerify installation
After installation, run the following in your terminal:
TERMINAL
1node --version2npm --versionIf both commands print a version, Node.js and npm are ready.