Installing Node.js
A step-by-step guide for absolute beginners
What is Node.js, and why do I need it?
Node.js lets your computer run JavaScript code, the same language used to build websites, outside of a web browser. Many popular tools and frameworks (like Eleventy, Astro, React, and others) require Node.js to be installed first before you can use them.
What operating system are you using?
Go to the official Node.js website
Click the big green "LTS" download button
Run the installer file
node-v22.x.x-x64.msi). A setup wizard will open.Click through the setup wizard
- • Click Next on the welcome screen
- • Accept the license agreement and click Next
- • Leave the install location as-is and click Next
- • Important: On the "Custom Setup" screen, make sure "Add to PATH" is checked (it should be by default)
- • Click Install, then Finish
✅ What is "Add to PATH"?
PATH is a list your computer uses to find programs. If Node.js is added to PATH, you can run it from anywhere in your terminal. If you skip this, Node.js won't work properly, so always make sure it's checked!
✅ Check that it worked
Now let's make sure Node.js was installed correctly. We'll do this using the terminal, don't worry, it's just two short commands!
How to open the terminal on Windows:
Press the Windows key + R, type "cmd", and press Enter. A black window will open, that's your terminal!
Type (or paste) these commands one at a time, pressing Enter after each:
node --version
npm --versionIf it worked, you'll see version numbers printed, like v22.13.1 and 11.3.0. The exact numbers don't matter, any numbers mean success! 🎉
❌ Seeing an error instead?
If you see "command not found" or "not recognized", try closing and reopening the terminal window, then try again. On Windows, you may need to restart your computer for PATH changes to take effect.
Always download Node.js from the official site: nodejs.org
