Installing Node.js and npm

📘 Node.js 👁 83 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

🤖 AI Quizer Assistant

📝 Quiz
📚 Categories
🏆 Leaderboard
📊 My Score
❓ Help
👋 Hi! I'm your AI quiz assistant for Quizer.in!

I can help you with:
• 📝 Finding quizzes
• 🏆 Checking leaderboard
• 📊 Your performance stats

Type 'help' to get started! 🚀
AI is thinking...