Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node Version Manager (NVM) on Windows

Tags:

node.js

npm

nvm

I am trying to downgrade my version of node

I ran:

npm install nvm

and I exported the bin folder to my Windows path variable,

C:\Program Files (x86)\nodejs\node_modules\npm\bin

but I still get:

'nvm' is not recognized as a an internal or external command.

Should I be adding another path to my path variable?

like image 443
Alexander Mills Avatar asked Sep 03 '14 21:09

Alexander Mills


People also ask

How do I use NVM to manage Node versions?

Switching among Node. 7; we can simply run either nvm use 12.22. 7 or nvm use 16.13. 0 to easily switch into either version we need. Note that since we only have one version that begins with 12, 14, or 16, we can switch versions with a simple nvm use 16 , nvm use 14 , or nvm use 12 command.

How do I Intall NVM in Windows?

And download the nvm-setup. Extract the downloaded archive file from your system. You will get a node-setup.exe file under the archive file. Double click the node-setup.exe file to begin the Node installation on Windows. Follow the installation wizard to complete the installation of Node on Windows.


3 Answers

nvm was designed for Linux. nvmw, which is completely different, broke around node v0.10.30. Try NVM for Windows.

like image 138
Corey Avatar answered Sep 30 '22 13:09

Corey


NVM can be used to manage various node version :

  • Step1: Download NVM for Windows

  • Step2: Choose nvm-setup.zip

  • Step3: Unzip & click on installer.

  • Step4: Check if nvm properly installed, In new command prompt type nvm

  • Step5: Install node js using nvm : nvm install <version> : The version can be a node.js version or "latest" for the latest stable version

  • Step6: check node version - node -v

  • Step7(Optional)If you want to install another version of node js - Use STEP 5 with different version.

  • Step8: Check list node js version - nvm list

  • Step9: If you want to use specific node version do - nvm use <version>

like image 103
Ritu Gupta Avatar answered Sep 30 '22 12:09

Ritu Gupta


NVM Installation & usage on Windows

Below are the steps for NVM Installation on Windows:

NVM stands for node version manager, which will help to switch between node versions while also allowing to work with multiple npm versions.

  • Install nvm setup.
  • Use command nvm list to check list of installed node versions.
  • Example: Type nvm use 6.9.3 to switch versions.

For more info

like image 7
Shrinivas Kalangutkar Avatar answered Sep 30 '22 12:09

Shrinivas Kalangutkar