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

Visit Node.js website, download the LTS installer, and follow the installation prompts.

Option 2: Chocolatey

CMD / PowerShell
1choco install nodejs-lts

Option 3: Scoop

CMD / PowerShell
1scoop install nodejs-lts

macOS

BASH
1brew install node

Option 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 nodejs

CentOS / RHEL:

BASH
1curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -2sudo yum install -y nodejs

Verify installation

After installation, run the following in your terminal:

TERMINAL
1node --version2npm --version

If both commands print a version, Node.js and npm are ready.