✏️ Install Node.js
Go to: https://nodejs.org
Click on the LTS version (Recommended for most users).
Run the installer:
Keep everything default ➜ Click Next → Install.
After installing
open the terminal
type the code below in the terminbal
node -v # Should show the version (e.g. v20.19.0)
npm -v # Should show npm versionNow Node.js & npm are installed.
type node and press enter. This starts an interactive shell
🧰 Node Version Manager (NVM)
⬇️ NVM Installation Guide
🔹 What is NVM?
NVM stands for Node Version Manager.
It is a command-line tool that lets you install, manage, and switch between different versions of Node.js on your machine.
Super helpful if you're working on multiple projects that each require a different Node version.
🛠️ Why use NVM?
Avoid compatibility issues with projects needing different Node versions.
Quickly test how code behaves on older or newer versions of Node.
Easily switch versions with a single command.
💻 Common NVM Commands
Command | Purpose |
|---|---|
| Installs a specific version of Node.js (e.g., |
| Switches to the specified version |
| Shows all installed versions |
| Installs the latest version |
| Removes a specific version |
| Sets a default version to use in new terminals |