Skip to main content

Posts

Showing posts from 2025

How to change Node JS version

First install the node.JS and NVM To use Node.js with NVM (Node Version Manager), you first need to install the desired Node.js version, then use it. Here's the sequence of commands: ✅ 1. Check installed Node versions : nvm ls ✅ 2. Install a specific Node.js version (e.g., 18) : nvm install 18 ✅ 3. Use a specific version : nvm use 18 ✅ 5. Verify the current version: node -v

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