As it turns out, the correct installation and usage of NVM on Windows OS often raises some questions due to the fact that there are some inaccuracies in the of this tool. In this regard, in this article, I will tell you how to install NVM on your computer step by step in a more optimal way (MacOS users do not need to read this). official repository NVM: What's the point? 🤨 is a tool that allows you to have multiple versions of Node.js on your device, switch them quickly, and it is managed from the command line interface (CLI). Node Version Manager (NVM) The fact is that different applications you work with can be implemented on different versions of Node.js. In practice, this is usually indicated by the file which is committed with your project and contains a single line with the version of Node.js to use for this project. However, running the application in another environment may not give the expected result or lead to errors. Why is this needed? .nvmrc The cases when NVM is just an indispensable thing occur very often in the workplace. Let me give you a small example from my past experience. Having come to work for a new company some time ago, I had to quickly get to the bottom of one of their past projects. At that time, we seemed to be using Node.js version , but the project repository required version . Of course, if I did not know about NVM, I would only have to reinstall from one version to another. And so for each new project! Definitely, it would be a big headache and a waste of working time. Can I do without it? 14.16.0 10.x Moreover, when you work on a large team, it's rare that everyone is using the same version of Node.js. How to install NVM correctly? 🤔 Well, let's get started with NVM installation. Along the way, I will point out the inaccuracies in the official repository that I mentioned at the very beginning of this article. Here I'm only emphasizing that the further explanation is based on the example of the version of Windows OS. 11th To begin, open the terminal application on your computer. For Windows, I recommend using due to some commands may not be available in . Ideally, use the built-in , in which you need to add . Git Bash Windows PowerShell Windows Terminal Git Bash Let's make sure NVM is not already installed on your computer. Just enter the command: nvm -v If this is correct, then you will see the following response: Go to the NVM for Windows and select the latest version (the top one in the list), for example, it is currently . Then download the file: releases page 1.1.10 nvm-setup.exe I assume that most of you already have Node.js installed at this point (if not yet, then NVM will do it for you a little later). And if we turn to the , it states that before installing NVM we need to uninstall any existing versions of Node.js: official manual However, we will not follow this advice. Instead, run the downloaded setup file. You'll be prompted to agree with the project's terms of use (сhoose option), then the installer will ask where to install NVM (click on the button). 'I accept the agreement' 'Next' And now attention! You'll be prompted to indicate where to set the Node.js . This is the next inaccuracy of the official manual because the default path is not correct: Symlink C:\Program Files\nodejs I strongly recommend to any other, that does not contain spaces. For example, I specified the following folder in the user's home directory: changing this path In the next window, click the button. Immediately after installation, NVM recognizes that you already have Node.js installed and asks the following question: 'Install' Select the option and the installation process will complete. 'Yes' Now restart the terminal application and make sure NVM is installed: nvm -v If everything was successful in the previous step, you will receive the following response: Usage 😃 First, make sure NVM is : enabled nvm on Expected response: Check the of Node.js: active version nvm current Expected response (in your case it may be another version): Download the of Node.js: latest version nvm install latest Expected response (in your case it may be another version): Also, I can download a specific version of Node.js, for example, 14.18.0: nvm install 14.18.0 Expected response: If you want to a specific version use the command: remove nvm uninstall <version> Open a installed on your computer: list of all versions nvm list Expected response: to use the specified version: Switch nvm use 14.18.0 Expected response: A complete list of commands can also be seen in the . official repository Well, that's where I end. I really hope that this article will help you properly install and use this wonderful and very useful tool. If you have any questions, write them in the comments below. 👋