Skip to main content

Node Version Manager

Installation

Install nvm

install with curl:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

alternative with wget:

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

refresh the shell

source ~/.bashrc

or using zsh:

source ~/.zshrc

Using NVM

check version:

nvm --version

install newest node version:

nvm install node

install specified version:

nvm install 18.19.0

activate version:

nvm use 20 # for node version 20.x.x