Node.js

Node.js is a free program that runs JavaScript code directly on your computer, not just in the browser. Many developer tools, including the npm package manager, depend on it. For Claude Code, Node.js 22 or later is only needed if you install through npm; the recommended native installer doesn't need Node.js at all.

A program that runs JavaScript code on your computer, not just in the browser. Many tools, npm included, need it.

You’ll also find it as: Node 22+

How it shows up in Claude Code

The official documentation lists several ways to install. The recommended one, the native installer (a curl command on Mac and Linux, or irm in PowerShell), doesn't need Node.js. The npm route requires Node.js 22 or later. On an older version, npm prints an EBADENGINE warning but the install still completes, because the package downloads the same native program, which doesn't use Node.js when it runs.

Node.js comes back later in real projects. In the first lab, Vercel deploys from a small program that needs Node.js, so Claude first checks whether you have it. Many modern websites also use Node.js to start their development server or to build.

Example

You can ask Claude:

Do I have Node.js installed? Check with node -v.

If you see a number like v22.11.0, you have it. If not, go to nodejs.org, download the LTS version and install it with the default options. Then close the terminal and open a new one.

Common mistakes

  • Installing Node.js just to get Claude Code, when the native installer doesn't need it.
  • Having an old version and ignoring that the project needs a newer one. Always check with node -v.
  • After installing, the old terminal window can't find the node command. Open a new one.
  • Installing a preview release instead of LTS, the recommended stable version.

Related terms and where you learn it

Node.js comes with npm, which installs a project's dependencies. You use it from the terminal, and it often runs a local dev server.

It comes up in the lesson “How to install it, step by step”, in module 00 · Installation and first steps, and in the lab after module 01 · How to talk to Claude.

Source: Claude Code documentation: Advanced setup

How it appears in the course

In the desktop app: you don’t install anything from the terminal and you don’t need Node.js: Claude Code is built into the app. The steps are in “Where can you use Claude Code?”.

How to install it, step by step · Module 00, Installation and first steps · free

Learn Claude Code from zero, in plain English

12 modules with 1–2 minute lessons, which you can also do on your phone. The first two modules are free.