How to install NVM on Ubuntu?

NVM is a node version manager for node.js, designed to be installed per-user, and invoked per-shell according to the original creator. NVM works on these platforms: Unix, macOS, and Windows.

Step 1: Update all the packages

$ apt-get update

Step 2: Install and Update the script with cURL or Wget command

$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
$ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash

Step 3: Verify the version

$ nvm --version

That’s it. I hope this will help. 🙂
Photo: Nodejs icon icon by Icons8

Leave a Reply

Your email address will not be published. Required fields are marked *