How to Install Node.js for Beginners (Quick Guide)
Node.js is why npm install commands exist. This beginner guide explains what it is, why you need it for AI tools, and how to install it in under 5 minutes.

If you've been following AI tutorials and hitting command not found: node, this guide explains how to install Node.js for beginners and get it working in five minutes. You don't need to understand Node.js deeply, you just need it installed so npm install commands stop failing.
Key Takeaways
- Node.js is a program that lets JavaScript run on your computer instead of only inside a browser — it powers most AI developer tools and CLI utilities
- npm (the package manager) ships with Node.js, so installing Node.js also fixes
npm installerrors- You install the LTS version from nodejs.org, one download, one installer, done
What Is Node.js and Why Do You Need It?
JavaScript was designed to run inside web browsers. That's it. When you open a website and it does something dynamic — a dropdown, a form, a button that changes color — that's JavaScript. Running inside your browser.
For years, that was the only place JavaScript lived.
Node.js changed that. Released in 2009, Node.js took the same JavaScript engine that runs inside Chrome and made it work as a standalone program on your computer. You don't need a browser. You just need a terminal.
That shift turned JavaScript from a browser language into a general-purpose tool for building servers, command-line scripts, and developer utilities.
Why this matters for you: Most AI CLI tools (CLI stands for Command-Line Interface — another name for the terminal) build systems, and developer automation scripts are built with Node.js. When you install Cursor or follow an AI tutorial that asks you to run npm install something, that's Node.js powering what happens next.
What Is npm and Why Does Every Tutorial Use It?
npm stands for Node Package Manager. It's a tool that ships with Node.js, when you install Node, you get npm automatically.
npm does one thing: it downloads and installs code packages that other developers have published. Think of packages as pre-built tools. Instead of writing complex code from scratch, a developer runs npm install followed by a package name, and that tool appears in their project instantly.
Here's the thing: nearly every JavaScript-based AI tool, developer utility, and project template uses npm packages. When a tutorial says npm install and your terminal returns an error, it's because Node.js, and therefore npm, isn't installed on your computer yet.
You don't need to understand npm deeply right now. You just need Node.js installed.
npm comes bundled with Node.js. You don't install them separately. Install Node.js once and both are ready to use.
How to install Node.js
You'll install Node.js using your terminal's built-in package manager — one command, no installer wizard, no clicking through screens.
You'll be installing the LTS version. LTS stands for Long-Term Support — it's the stable version that receives security updates for years. Always use LTS unless a tutorial specifically requires a different version.
Once installed, you'll confirm it worked by running node --version in your terminal. If you see a version number, you're done.
Your Task
Install Node.js from your terminal
Open your terminal and run the command for your operating system:
Windows:
winget install OpenJS.NodeJS.LTS
Mac:
brew install node
Mac users: brew is Homebrew, a package manager that comes standard on most Mac developer setups. If your terminal returns command not found: brew, install Homebrew first at brew.sh (one command), then re-run the line above.
Once the install finishes, confirm it worked:
node --version
You should see something like: v22.x.x
If you see a version number, Node.js is installed. You're done.
Done? You've completed Lesson 03.03. Next up: Install Python, the language of AI tools →
New to the Launchpad? Start from the beginning at the Getting Started path.
FAQ
Common questions
Finished reading?
Mark it complete to track your progress through the path.
Comments (0)
Be the first to leave a comment.