---
title: "What Is Node.js (and How to Install It)"
description: "Node.js is a runtime that lets you run JavaScript outside the browser. Learn what it is, why you need it, and how to install it in a few minutes."
type: "fundamental"
locale: "en"
category: "tools"
canonical: "https://agenticschool.dev/fundamentals/what-is-nodejs"
dateModified: "2026-06-12"
---

# What Is Node.js (and How to Install It)

- Category: tools
- Updated: 2026-06-12
- Keywords: Node.js, install node, npm, javascript runtime, beginner
- Canonical URL: https://agenticschool.dev/fundamentals/what-is-nodejs
- Locale: en

> Node.js is a runtime that lets you run JavaScript outside the browser. Learn what it is, why you need it, and how to install it in a few minutes.

Node.js is a runtime that lets you run JavaScript on your computer instead of only inside a web browser. Almost every modern web project needs it because the tools that build, run and test your app are themselves JavaScript programs, and Node.js is what executes them. If a tutorial tells you to run "npm install" or "npm run dev", that command only works because Node.js is installed. Think of it as the engine your project sits on top of.

## Why you need Node.js

When you build a website with a modern framework, you are not just writing files a browser opens. You run a development server, install packages, and compile your code. All of those tools are written in JavaScript and need Node.js to run. Without it, the commands in almost every tutorial simply fail with "command not found".

- It runs the dev server that previews your site while you build.
- It runs npm, the tool that installs the libraries your project depends on.
- It runs build, test and lint tools that ship and check your code.

## How to install it

The safest way to install Node.js is from the official website, nodejs.org. Download the LTS version (Long Term Support), which is the stable one recommended for almost everyone, and run the installer. After it finishes, open a fresh terminal and check that it worked.

```bash
node --version
npm --version
```
Both commands should print a version number. If they do, Node.js and npm are ready.

## Common beginner confusions

Node.js is not a different language, it is JavaScript running in a new place. You also do not "use" Node.js directly most of the time. You install it once, and then the tools you actually run (npm, your dev server, your framework) use it under the hood. If a command fails right after installing, the usual fix is to close your terminal completely and open a new one, so it picks up the new installation. One more thing trips people up: the version number matters less than people fear. As long as you are on a recent LTS release, almost every tutorial and project will work, and you rarely have to think about Node.js again once it is set up. You do not need to update it constantly either; a yearly check is plenty for most builders.

## FAQ

### Is Node.js a programming language?

No. Node.js is a runtime that runs the JavaScript language outside the browser. You write JavaScript or TypeScript; Node.js is what executes it on your machine.

### Which version of Node.js should I install?

Install the LTS (Long Term Support) version from nodejs.org. It is the stable, well-supported one and is the right default for almost every project.

### Do I need to know JavaScript to use Node.js?

Not to install it. You install Node.js once so other tools can run. With an AI coding agent you can build real projects on top of it without writing much JavaScript yourself at first.
