Installed NVM (Node version manager ) for windows from here. Actually NVM was getting installed in Administrator account. Thought to install it in C:\Node\
directory so it would be found in CMD
for user and set environment variable as mentioned here
But nothing is working for me.
OS: Windows 10 Enterprise
Steps to install NVM In the screenshot, it shows NVM is not recognized as an internal or external command. In the resulting folder, go to the assets section and click on the nvm-setup. zip file. Download the file and unzip it and right click on the installation file and select 'Run as Administrator'.
Node Version Manager, more commonly called nvm, is the most popular way to install multiple versions of Node. js, but is only available for Mac/Linux and not supported on Windows.
Open a CMD prompt (run as administrator), and install the downloaded version of nvm, nvm-setup.exe, from within this CMD command prompt. From within the admin level command prompt, run "nvm install 7.2. 1", or whatever node version you want to install.
So there are multiple answers here, and between them all, the information required to get NVM working is present, however; it's very frustrating, that people only include single steps in an answer, and are not explicit about it only being a single step, therefore, I have taken much time to rewrite the correct way to solve this issue (or answer this question).
The other answers tell you that you need to add the Env Variables...
NVM_SYMLINK
NVM_HOME
...to your Windows PATH
, which is what the other answers have submitted that you do.
You add the PATH Variables using commands with Administrator privileges, which means opening the console with administrative privileges.
It's not difficult:
Use the keybinding...
The Windows Run box should open, once you see it, type the text next to the bullet below into the text-input box.
cmd.exe
After you type cmd.exe into the text-input, do not default to clicking the ENTER button, or pressing the ENTER key. Rather than the using the sole ENTER key, you are going to instead use the key-binding below.
Once inside, use the following commands.
C:\...\...> NVM_HOME = C:\ProgramData\nvm
C:\...\...> NVM_SYMLINK = C:\Program Files\nodejs
NVM
should work. You can test it by using the command: C:\...\...> node --version
// OUTPUT: v16.13.0 ("should print somthing like this")
C:\...\...> node -v
// OUTPUT: v16.13.0 ("should print somthing like this")
NVM_HOME & NVM_SYMLINK must be in System variables
NVM_HOME = C:\ProgramData\nvm
NVM_SYMLINK = C:\Program Files\nodejs
%NVM_HOME% , %NVM_SYMLINK%
in the PATH variable under System variables .
For Powershell or command prompt
nvm --version
, you should see the version . echo %NVM_HOME%
, that should return the same value as in system variable If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With