# [Node Version Manager](https://github.com/nvm-sh/nvm) `nvm` allows you to quickly install and use different versions of node via the command line. ## [Install](https://github.com/nvm-sh/nvm#installing-and-updating) > `curl` ```shell curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash ``` > `wget` ```shell wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash ``` ## Edit `~/.zshrc` ```shell export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm ``` ## Source `~/.zshrc` ```shell source ~/.zshrc ``` ## List > Installed ```shell nvm ls ``` > Available to Install ```shell nvm ls-remote ``` ## Version > Option `-reinstall-packages-from=[VERSION] [-latest-npm]` ### Long Term Support ```shell nvm install --lts ``` ```shell nvm install --lts=[VERSION] ``` ### Current ```shell nvm install-latest-npm ``` ### [Set Node Default Version](https://github.com/nvm-sh/nvm#set-default-node-version) ```shell nvm alias default [VERSION] ```