Node Version Manager (NVM) on Windows

2020-05-19 04:24发布

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?

标签: node.js npm nvm
8条回答
唯我独甜
2楼-- · 2020-05-19 05:24

Nvm can be used to manager various node version :

  • Step1: Download nvm
  • 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 - npm -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>
查看更多
够拽才男人
3楼-- · 2020-05-19 05:24

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

查看更多
登录 后发表回答