
This utility allows you to easily switch between different versions of Node.js. You can install and use different versions of Node for different projects.
Installing nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bashAfter installation, you need to restart your terminal or run the command:
source ~/.bashrcif you are using bashsource ~/.zshrcif you are using zsh
nvm Commands for Operations
nvm install --lts # latest LTS version
nvm install node # latest stable
nvm use node # use the latest
nvm use 18 # use version 18
nvm ls-remote # see available versions