Why isn't Node Version Manager (NVM) recognized on Windows?

377,094

Solution 1

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

Solution 2

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>

Solution 3

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

Solution 4

As an node manager alternative you can use Volta from LinkedIn.

Solution 5

I created a universal nvm that works on both Unix (bash) and Windows, base on another simple nvm.

It doesn't need admin on Windows, but requires PowerShell 4+ and the right to execute scripts.

https://www.npmjs.com/package/@jchip/nvm#installation

Share:
377,094
Alexander Mills
Author by

Alexander Mills

Dev, Devops, soccer coach. https://www.github.com/oresoftware

Updated on July 08, 2022

Comments

  • Alexander Mills
    Alexander Mills almost 2 years

    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?