![]() For Windows, I recommend using Git Bash due to some commands may not be available in Windows PowerShell. To begin, open the terminal application on your computer. Here I'm only emphasizing that the further explanation is based on the example of the 11th version of Windows OS. ![]() ![]() Along the way, I will point out the inaccuracies in the official repository that I mentioned at the very beginning of this article. Well, let's get started with NVM installation. Moreover, when you work on a large team, it's rare that everyone is using the same version of Node.js. And so for each new project! Definitely, it would be a big headache and a waste of working time. Of course, if I did not know about NVM, I would only have to reinstall from one version to another. At that time, we seemed to be using Node.js version 14.16.0, but the project repository required version 10.x. 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. Let me give you a small example from my past experience. However, running the application in another environment may not give the expected result or lead to errors.Ĭan I do without it? The cases when NVM is just an indispensable thing occur very often in the workplace. nvmrc file which is committed with your project and contains a single line with the version of Node.js to use for this project. In practice, this is usually indicated by the. Why is this needed? The fact is that different applications you work with can be implemented on different versions of Node.js. Node Version Manager (NVM) 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). 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). 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 official repository of this tool.
0 Comments
Leave a Reply. |