-
Notifications
You must be signed in to change notification settings - Fork 0
NVM
deepaksama edited this page Apr 18, 2022
·
6 revisions
nvm allows you to quickly install and use different versions of the node via the command line.
Run : curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Command | Description |
---|---|
nvm ls-remote | Displays every possible node version that can be installed |
nvm install <Version> | Installs the specific version of node |
nvm install node | Installs the latest version of node |
nvm ls | List all the installed versions in the local machine |
nvm use <Version> | Switch to a specific version of node to use |
nvm use system | Switch to a system-wide version of node to use |
nvm alias <alias name> <Version> | Creates an alias <alias name> for the given version |
nvm use | Switches to node version specified in .nvmrc file in the current project directory |