Installing Node.js and npm

Node.js 138 views Nov 05, 2025 1 min read
Visit : https://nodejs.org/en
  1. Download the LTS version

  2. Run the installer and follow the instructions

  3. Node.js and npm will be installed automatically

Verify Installation

node -v

npm (Node Package Manager)

npm is the default package manager for Node.js. It is used to install, update, and manage project dependencies.

Check npm Version

npm -v

Initialize a Project

npm init

Install a Package

npm install

Example Program

console.log("Hello, Node.js");

Run using:

node app.js

Conclusion

Node.js enables server-side development using JavaScript, while npm simplifies package management and dependency handling.

Some advanced sections are available for Registered Members
Share this Post
🚀 Want to Test Your Knowledge?

Take quizzes related to this topic and see where you stand!

Start Quiz Now
Back to Tutorials