



Then simply this simply allows you to switch your Node versions, also the ability to use install commands. Nvm ls List versions (installed versions are blue)Ī simple install by downloading and running the nvm-setup.zip. It allows you to easily install and manage multiple versions of node. The Node Version Manager. You can find it at Upon this realisation, I completed a quick search and stumbled across a useful tool that can be installed on your Windows machine: The project I was working on required me to update my version of Node.js a pretty straightforward process, until I then returned to an older project that was dependent on an earlier version of Node. In Visual Studio, go to Tools -> Options -> search for 'external web tools' in the searchbar.Īs shown in the image add the path to the folder where Node.js is installed to the top of the list.Today I’m going to be exploring how to manage multiple installations of Node.js on a windows computer following an issue I recently came across whilst working on a project. net developer like me and use Visual Studio daily, there can sometimes be an issue with Visual Studio not using the Node version specified by NVM. To download the latest version just use: nvm install latest.Īnd if you want to see a list of all the commands available just enter NVM in cmd to list them all: To install the latest Node version, we will run the below command: nvm install node. This command lets you install different Node versions. Click on the 'nvm-setup.zip' link from the 'assets' table as shown in the image below. Probably you will be installing multiple versions, so repeat as needed. Installing NVM for Windows 10 Go to the nvm-windows Git Repository Using your browser navigate to the Git repository for nvm-windows located over here. From within the admin level command prompt, run 'nvm install 7.2.1', or whatever node version you want to install. Shows a list of available Node versions to download Open a CMD prompt (run as administrator), and install the downloaded version of nvm, nvm-setup.exe, from within this CMD command prompt. Now that we have NVM installed we can start using it in our terminal of choice. It's easy!įor installing on Linux and MacOS I would refer to the readme found on GitHub. Installing Node.js requires local administrator rights if you are not a local administrator, you will be prompted for an administrator password on install. How to install and use NVM on Windowsĭownload the latest version of NVM (nvm-setup.zip) from Github. All you need to do is install NVM and the versions of Node you need. NVM (Node Version Manager) is a tool for installing and managing different Node versions. That's a problem we can solve rather easily with NVM. If you're like me, and switch a lot between different projects, you've most likely run across problems with Node.js versions when building the frontend.
