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
RSA Encryption and RSA Algorithm: A Comprehensive Overview
Worrisome Warts? Try These 7 Home Remedies To Get Rid Of Them - Tata 1mg Capsules
Bm1 Bus Tracker
Crailo State Historic Site
Rural King Credit Card Minimum Credit Score
Honey Huxxlee Leaks
Shemales In Irvine
20 Years at the Getty Center: A Getty Museum Perspective
Mbta Fitchburg
Why Do You Want A Dog?
3466051968
Mall At Millenia Nordstrom
Medfusion/Toa Portal
Craigslist Va Charlottesville
The Menu Showtimes Near Century Arden 14 And Xd
IFA - The REACH Chemical Regulation and OS&H: Classification and labelling inventory
Salmon Fest 2023 Lineup
Gulfstream Entries Results
Oreilleys Auto Near Me
Montgomery County District Court Commissioner's Office
Craigslist Hunting Land For Lease In Ga
Abby's Caribbean Cafe
Baris Atay Twitter
Saberhealth Time Track
Craigs List Corpus Christi
Tamilyogi Movies Download 2022 Free Download
Klay Thompson Finals Stats
Creating a Numerical Table from Two Functions (TABLE)
Fake Snaps Summer
Www.doculivery/United Family Payroll Login Page
Www.labcorp.com
Los Angeles Craigs List
O'reilly's In Mathis Texas
bitchinbubba face leak & bitchinbubba face reveal twitch| Discover
Le guide de l'usage des accents en français
Optum Primary Care - Winter Park Aloma
Juicy Deal D-Art
Community near Panama City Beach, FL 32413 - craigslist
Angela Sebaly Obituary
Heb Partnernet Peoplesoft Login
Syracuse Football 247
2005 Chevrolet Silverado Radio Wiring Diagram
Mangadex.oeg
Craigs List Jonesboro Ar
Branson Shooting Range
Bertelsmann-printing-group in Berlin auf Marktplatz-Mittelstand.de
1nsane (2000) - MobyGames
Kendal Mint Cake Recipe: A Sweet Adventure - Simple Home Cooked Recipes
Kobalt Kst 180-06 Parts
Automart Ladson
Recent Vanderburgh County Arrest
Star Citizen 2024 Review - Is it worth buying? - Gamers By Night
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.