What
node version manager
Install (windows)
Problem
use npm install: npm install nvm -g,but when run nvm, show the error hint: This is not the package you are looking for: please go to nvm.sh
Solution
- remove nvm:npm uninstall nvm -g
- download nvm-setup.zip
Install (macos)
[touch ~/.bash_profile] // open cmd, enter current user's home directory, if there's no file named .bash_profile, then use the cmd create one, or you will encounter "command not found: nvm" after installing
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
复制代码
Usage
- nvm ls // list the installed node version
- nvm ls-remote
- nvm install // install the pointed node version
- nvm uninstall
- nvm install node: install the lastest version
- nvm unstall
- nvm current // show the current node version being used
- nvm use