• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • AI
  • Javascript
  • TypeScript
  • Development
  • Frameworks
    • Angular
    • Git
    • NestJs

The code Mood

Ignite Passion, Master Code

You are here: Home / Development / A Comprehensive Guide to Installing Node Version Manager (NVM) on Windows, Linux, and Mac

A Comprehensive Guide to Installing Node Version Manager (NVM) on Windows, Linux, and Mac

by Ahmed Fakhar Abbas

In the dynamic world of software development, Node.js has emerged as a game-changer since its first release in May 2009. With its intrinsic role in modern projects, Node.js has become the backbone of the software development industry. This article delves into the installation process of Node.js on different operating systems, with a focus on Windows and the usage of Node Version Manager (NVM).

Table of Contents

Toggle
  • Node.js Overview:
  • What is NVM?
  • How to Install NVM on Windows:
  • How to Install NVM on Linux and Mac:
  • How to Install a Node Version:
  • Switching Environments:
  • Conclusion:

Node.js Overview:

Node.js, the second most popular backend technology after Java, has gained widespread adoption among startups and enterprises. Companies such as Uber, Netflix, PayPal, Trello, and Yahoo utilize Node.js in building MERN, MEAN, or MEVN stack projects. Beyond its backend capabilities, Node.js comes with an integrated package manager known as NPM (Node Package Manager), facilitating the inclusion of external node packages like Angular, ReactJS, or Vue in projects.

What is NVM?

Node Version Manager (NVM) serves as a vital tool for managing different Node.js versions on a single device. NVM proves especially beneficial when working on diverse projects requiring distinct Node.js versions. It enables seamless switching between these versions, ensuring accurate execution results for each project.

How to Install NVM on Windows:

Although NVM is predominantly supported by Linux and macOS, a counterpart called nvm-windows provides a similar experience on Windows systems. The installation process involves a few simple steps:

  1. Visit the nvm-windows Git Repository and download the ‘nvm-setup.exe’ installation file.
  2. Complete the installation process by clicking on the downloaded file.
  3. Confirm the successful installation by executing the command: nvm –v.
  4. Install npm using commands like nvm install latest or nvm install <version>.
  5. Specify the npm version with nvm use <version> and verify versions using node –version and npm –version.
  6. Explore additional features by listing versions with nvm list and switching environments with nvm use <version>.

How to Install NVM on Linux and Mac:

For Linux and Mac users, the installation process is slightly different but shares common steps:

  1. Run the NVM installer using the command: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash (or wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash).
  2. Update the profile configuration by adding the NVM configuration lines to the profile file.
  3. Reload the shell configuration using source ~/.bashrc (or the relevant profile).
  4. Confirm the installation with nvm –v.

How to Install a Node Version:

Install specific Node.js versions using the command nvm install <version>. For example, nvm install 10.1.0 installs Node.js v10.1.0 coexisting with other versions on the system. Use nvm to install the latest  node version

Switching Environments:

Switch between Node.js environments with the nvm use <version> command. The major version suffices, and NVM selects the most recent version within that major version. Useful commands include nvm list for listing versions and nvm uninstall <version> to remove a specific Node.js version.

Conclusion:

This comprehensive guide demystifies the installation process of Node Version Manager (NVM) on Windows, Linux, and Mac systems. By seamlessly managing various Node.js versions, NVM proves to be an indispensable tool for developers seeking a flexible and efficient workflow. Whether you’re a seasoned Node.js developer or exploring this environment for the first time, NVM offers a streamlined approach to handling diverse project requirements. Accelerate your workflow and enhance your Node.js development experience with the power of NVM.

Filed Under: Development

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • 5 Programming Jokes That Prove Java Developers Have the Best Sense of Humor
  • Bridging the Gap: The Crucial Role of Developer Advocates in the Software Landscape
  • Long Hair and Beard: 9 Fascinating Secrets Behind Programmers’ Iconic Look
  • ServiceNow vs Salesforce: 7 Must-Know Differences to Choose the Best CRM Solution
  • Will Devin AI Take Your Job?

Categories

  • AI
  • Angular
  • Development
  • Git
  • Javascript
  • NestJs
  • TypeScript

Footer

  • About Us
  • Privacy Policy
  • Contact Us

Copyright © 2026 · The code Mood