Skip to main content

Posts

Showing posts from March, 2025

Switching between different Node.JS versions

Yes, you can have multiple versions of Node.js installed on your system using **Node Version Manager (NVM)**. you need to install **nvm-windows**. 🔹 Steps to Install and Manage Multiple Node.js Versions on Windows** 1️⃣ Install NVM for Windows Download **NVM for Windows** from official website: 👉 [https://github.com/coreybutler/nvm-windows/releases](https://github.com/coreybutler/nvm-windows/releases) - Install it and restart your computer. 2️⃣ Install Multiple Node.js Versions** - Open **Command Prompt (cmd) or PowerShell** and run: nvm install 18.17.0 # Install Node.js 18 nvm install 22.14.0 # Keep your existing version eg: Node.js 22 List installed versions: nvm list 3️⃣ Switch Between Node.js Versions** nvm use 18.17.0 To switch back to Node.js 22: nvm use 22.14.0 🔹 How to Set a Default Node.js Version** If you always want Node.js 18 to be the default: nvm alias default 18.17.0