Getting Started with Node.js: Installation, Basics, and When to Use It
Learn how to install Node.js, verify setup with node -v and npm -v, understand who created Node.js and why, and when Node.js is the right choice.
May 28, 2026
Getting Started with Node.js: Installation, Basics, and When to Use It
Node.js is one of the most popular tools for modern JavaScript development. If you are getting started, it is important to understand both how to install it and what kind of workloads it is best for.
In this guide, we will cover:
- Installing Node.js from the official website
- Verifying installation with
node -vandnpm -v - Why LTS is recommended
- Who created Node.js and why it was needed
- What Node.js actually is
- Why CPU-heavy apps are not ideal for Node.js
- How Node.js enables full-stack JavaScript
- How to start an interactive Node session in terminal
1) Install Node.js from the Official Website
The safest way for beginners is to install Node.js from the official website:
- Go to https://nodejs.org
- Download the LTS (Long-Term Support) version
- Run the installer and complete setup
Why LTS?
The LTS release is generally preferred because:
- It is more stable
- It receives long-term support and security fixes
- Most production projects and libraries target LTS first
2) Verify the Installation
After installation, open a terminal and run:
node -v
npm -v
If both commands print versions, installation is successful.
Also remember: npm comes bundled with Node.js runtime, so you usually do not install npm separately.
3) Who created Node.js, and why was it needed?
Node.js was created by Ryan Dahl in 2009.
At that time, web applications were becoming more interactive, but many server architectures used a thread-per-request model that was not ideal for handling very large numbers of simultaneous connections efficiently. Ryan Dahl introduced Node.js to make network applications more scalable and responsive for I/O-heavy workloads.
The main needs were:
- Handle many concurrent connections without heavy thread overhead
- Keep servers responsive with non-blocking I/O
- Use an event-driven approach for modern web traffic patterns