How to Install Node.js

Getting Started with Node.js on Windows

To install Node.js on Windows, download and install Node.js from the official Node.js website. This installation also includes npm, which is the Node.js package manager.

Verify the installation of Node.js and npm by running:

node -v
npm -v

Install Node.js on Linux

For Linux users, install Node.js and npm via your package manager. For Debian and Ubuntu based distributions:

sudo apt update
sudo apt install nodejs npm

For Fedora, CentOS, or RHEL:

sudo dnf install nodejs npm

Verify the installation of Node.js and npm by running:

node -v
npm -v

Next Steps

With Node.js and npm successfully installed, you're equipped to handle your project's dependencies. To learn more about utilizing the npm install <package> command to incorporate new libraries and tools into your projects, please visit our How to Use 'npm install' Command Line Interface page. This resource offers comprehensive details to help you effectively install and manage npm packages.