Installing Node.js and npm

📘 Node.js 👁 50 views 📅 Nov 05, 2025
⏱ Estimated reading time: 1 min
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
Register Now

Share this Post


← Back to Tutorials

Popular Competitive Exam Quizzes