How to install and manage multiple node.js versions in your Ubuntu 16.04+ using NVM - Hindi

Опубликовано: 22 Март 2026
на канале: Suraj Sharma - Full Stack Developer
448
39

This video helps you install NVM in your Ubuntu 16.04+ to install and manage more than one node.js versions in your system. Moreover, it demonstrates a few NVM commands to install different node.js versions and later use a node.js version from the installed versions list.

Open a terminal and paste the command
curl o https://raw.githubusercontent.com/nvm... | bash, to download NVM. Wait for the download to complete.

Next, paste the command
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"

Now you are good to go.

Verify whether the nvm is installed using the command nvm --version, that returns a version number. Bingo!

Now try to install 3 node versions by running the following commands one by one
nvm install v13.5.0,
nvm install v12.9.0,
nvm install v10.10.0
Once all the above node versions are installed run 'nvm ls' to list all the versions.

To verify which node.js is running simply run 'node -v', that returns currently in use node js version, i.e.; v10.10.0

Now let's use a different node version by running nvm use v13.5.0, running node -v will return v13.5.0. Hurray! the version has changed to v13.5.0.

Link to the Github repo shown in the video: https://github.com/nvm-sh/nvm

Find me in
Official Website: https://www.surajsharma.net