Use NVM To Install Multiple Node Versions (2024)

What is NVM and how is it used?

This blog is intended for developerswho are looking to install multiple versions of node on their machine.

If you’re building a web application with any modern framework, chances are you’ll need to install node at some point. Since different projects have different environment setups, you may need to install multiple versions of node on your workstation. As node doesn’t provide any out-of-the-box functionality to have multiple versions of node installed on the same operating system, we'll have to use NVM, which stands for node version manager, to have multiple node versions.

Prerequisites

Before we install multiple node versions via NVM, you will need to uninstall the current node version.

Get the Current Node Version

Keep note of your current installed version of node before you proceed with the uninstallation, as we will need this later. Open cmd with administrator rights and type the following:

node --version

Use NVM To Install Multiple Node Versions (1)

Uninstall Node

Press Windows Key and search for Add or remove programs.

Use NVM To Install Multiple Node Versions (2)

Search node in the search box and click Uninstall byclicking the three dots.

Use NVM To Install Multiple Node Versions (3)

Install NVM

Download nvm-setup.exefrom this link. Double-click it and follow the prompts to install NVM, and don't worry; everything remainsdefault, so there is no need to customize anything.

Verify your installation by typing the following command in cmd.

nvm --version

Use NVM To Install Multiple Node Versions (4)

You'll see a version number in the output if your installation succeeds. Otherwise, you'll see node is not recognized as internal command in the output.

Usage

Remember in the prerequisites that we noted the node version. Well, we will use that now by typing the followingcommand in cmd to install node. For our example, we had 14.17.0, so we'll use that.

nvm install 14.17.0

Use NVM To Install Multiple Node Versions (5)

To use the installed version, we type the following in cmd.

nvm use 14.17.0

Use NVM To Install Multiple Node Versions (6)

One more handy command is nvm list which will display all the installed versions of node on yourworkstation. It'll alsotell you which version is currently being used by displaying '🞷' in front of the version number.

Use NVM To Install Multiple Node Versions (7)

Summary

That's it, folks. Now you can have multiple versions of node installed on your machine. To recap, run:

  • nvm install <version> to install a specified version.
  • nvm use <version> to switch between different versions.
  • nvm listto list all versions installed on your workstation.

Happy decoding!

Use NVM To Install Multiple Node Versions (2024)
Top Articles
How Adultery Can Affect a Military Divorce
MARUTI Forecast — Price Target — Prediction for 2025 — TradingView — India
123Movies Encanto
Gabrielle Abbate Obituary
Obituary (Binghamton Press & Sun-Bulletin): Tully Area Historical Society
Bluegabe Girlfriend
Apply A Mudpack Crossword
Embassy Suites Wisconsin Dells
Deshret's Spirit
Directions To O'reilly's Near Me
“In my day, you were butch or you were femme”
Belle Delphine Boobs
Quest Beyondtrustcloud.com
10-Day Weather Forecast for Florence, AL - The Weather Channel | weather.com
Craigslist Panama City Fl
Equipamentos Hospitalares Diversos (Lote 98)
Video shows two planes collide while taxiing at airport | CNN
Farmer's Almanac 2 Month Free Forecast
Odfl4Us Driver Login
Morse Road Bmv Hours
Lost Pizza Nutrition
F45 Training O'fallon Il Photos
California Online Traffic School
Wsbtv Fish And Game Report
Ticket To Paradise Showtimes Near Cinemark Mall Del Norte
manhattan cars & trucks - by owner - craigslist
Cinema | Düsseldorfer Filmkunstkinos
Criglist Miami
A Man Called Otto Showtimes Near Carolina Mall Cinema
Lesson 1.1 Practice B Geometry Answers
Craigslist/Phx
Robot or human?
Wednesday Morning Gifs
Hermann Memorial Urgent Care Near Me
Does Iherb Accept Ebt
Ippa 番号
Ny Post Front Page Cover Today
Imperialism Flocabulary Quiz Answers
B.C. lightkeepers' jobs in jeopardy as coast guard plans to automate 2 stations
SF bay area cars & trucks "chevrolet 50" - craigslist
Toomics - Die unendliche Welt der Comics online
Enr 2100
Conan Exiles Colored Crystal
Aloha Kitchen Florence Menu
Waco.craigslist
The Jazz Scene: Queen Clarinet: Interview with Doreen Ketchens – International Clarinet Association
Mawal Gameroom Download
How To Find Reliable Health Information Online
Turning Obsidian into My Perfect Writing App – The Sweet Setup
Phumikhmer 2022
Lake County Fl Trash Pickup Schedule
Salem witch trials - Hysteria, Accusations, Executions
Latest Posts
Article information

Author: Rev. Leonie Wyman

Last Updated:

Views: 6188

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Rev. Leonie Wyman

Birthday: 1993-07-01

Address: Suite 763 6272 Lang Bypass, New Xochitlport, VT 72704-3308

Phone: +22014484519944

Job: Banking Officer

Hobby: Sailing, Gaming, Basketball, Calligraphy, Mycology, Astronomy, Juggling

Introduction: My name is Rev. Leonie Wyman, I am a colorful, tasty, splendid, fair, witty, gorgeous, splendid person who loves writing and wants to share my knowledge and understanding with you.