%%
date:: [[2022-11-04]]
%%
# [[Node Version Manager]]
URL: https://github.com/nvm-sh/nvm
The Node Version Manager (NVM) is a tool that allows developers to switch easily from one version of [[NodeJS]] to another. This makes it easy to troubleshoot compatitibility issues.
NVM is not a [[Package Manager]]; it only manages Node itself.
Using NVM also helps solve permissions issues on [[Linux]]/[[Unix]] when using `sudo`, which I ran into when using the [[JMeter-to-k6 Converter]].
## Installing NVM
`curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash`
Verify installation by running `command -v nvm`. You should get `nvm` as a response.
Close the terminal window and open up a new one to start using NVM.
## List all available versions of Node (remote)
To see a list of versions available online for Node:
`nvm ls-remote`
## List all locally installed versions of Node
`nvm ls`
## Choose a Node version to use
`nvm use node v14.5.5`
## Download the latest version of Node
`nvm install node`
## Set a default version of Node to use
`nvm alias default v16.15.1`