

But before you can use NVM, you must download and install it on your machine.ġ. Switching between Node.js versions should not be complicated, and NVM is up to the task. Related: The Visual Studio Code Tutorial Worth Learning How to Download and Install NVM on Windows A code editor – This tutorial uses Visual Studio Code ( VS Code), but you can use any code editor you are comfortable with.A Windows 10 computer with administrative privileges.To follow along, be sure you have the following: This tutorial will be a hands-on demonstration. Read on, and switch between Node.js versions without the hassle! Prerequisite But in this tutorial, you will learn how to install and use NVM on Windows to install different versions of Node.js. Installing and using NVM can be a bit tricky, especially on Windows. Install NVM on Windows and save yourself the trouble of managing multiple Node.js versions. so you can take action accordingly.Are you having trouble switching between different versions of Node.js as your build your project? Let Node Version Manager (NVM) save the day. it may be permission issue or path already exists. Then you will get the exact error message. Try to create symlink manually :ĭ:\>mklink /j "%NVM_SYMLINK%" "%NVM_HOME%\v4.7.2" If all files are there then problem to create symlink.

v4.7.2) which has node.exe, npm, node_modules folders…etc. In NVM_HOME path folder, you will get the node version folder (i.e. Before install node, run “ nvm on” command then install and use specific node versionĥ. “Start” > type “cmd” > right-click and “run as administrator”Ĥ. If there is already folder then delete it, run “ nvm use” command and test it again.ģ. Suppose if you selected “ C:\Program Files\nodejs” in installation then nodejs must NOT exist in “ Program Files” folder. During nvm installation, make sure the selected path must NOT exist. If installed then uninstall all and install nvm again.Ģ. Make sure before installation, there was no existing Node.js installed on your machine.
