Nearby lessons

2 of 21

🚀 Node.js – Environment Setup

📌 What is Node.js Setup?

Setting Up Node.js Development Environment

Before starting development with Node.js, it's important to set up the environment properly. This includes installing Node.js, npm, a code editor, and tools for API testing like Postman.

📌 1. Install Node.js & NPM

  • Node.js: Open-source, cross-platform JavaScript runtime environment.
  • Runs JavaScript outside a browser (server-side).
  • Built on Google Chrome's V8 Engine, fast and efficient.
  • 👉 Download NodeJS

🔹 What is NPM?

  • NPM (Node Package Manager) is bundled with Node.js.
  • Install third-party packages and manage project dependencies.
  • Share your own code as npm packages.
  • Example: npm install express
  • ✅ Gives access to thousands of packages to simplify development.

📌 2. Install Visual Studio Code (VS Code)

  • VS Code is a free, powerful source-code editor from Microsoft.
  • Available for Windows, macOS, Linux, and Web.
  • Features include: built-in debugging, syntax highlighting, IntelliSense, snippets, code refactoring, and extensions for Node.js, React, Angular, Python, etc.
  • 👉 Download VS Code

📌 3. Install Postman

  • Postman is a tool for designing, building, testing, and collaborating on APIs.
  • Used to test API endpoints (GET, POST, PUT, DELETE).
  • Organize requests into collections, automate tests, and collaborate with teams.
  • Over 30 million users worldwide.
  • 👉 Download Postman

📌 Verify Node.js & NPM Installation

  • Open Command Prompt / Terminal and run:
  • node -v → shows Node.js version
  • npm -v → shows npm version
  • ✅ If both appear, Node.js environment is successfully set up!
Node.js Environment
RUNTIME ACTIVE
console.log("Checking Node.js version...");
console.log("Node.js Version:", process.version);
console.log("Platform:", process.platform);
console.log("Architecture:", process.arch);
Terminal Output
Live Output Preview

🧠 Test Your Knowledge

4 Questions

Progress: 0 / 4
Keep Going!Your First Node.js Program