How to install/update NVM and Node in Ubuntu

In this article, We are going to learn how to install NVM (Node Version Manager) and Node in Ubuntu.

Installing cURL

Before going to install the NVM, Please make sure you have installed the Curl. If not, install it by the following command

sudo apt install curl

Installing /updating NVM

To install or update nvm, you should run the install script. To do that, run the following cURL command

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

The above script clones the nvm repository to ~/.nvm, and attempts to add the source lines from the snippet below to the correct profile file

Close and re-open your terminal to use/install the node by using NVM

Installing Node through the NVM

run the following command to install the node

nvm install 16.13.0

If you want to install the latest version of the node, Run the below command

nvm install node

You can list of download versions by following the command

nvm ls

You can switch the node version by running the following command

nvm use <version>

For Example, nvm use 16.13.0

--

--

--

Software Developer @Netcondigital

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

I have one month to make an MMO: Day 2

Developing Mobile Wallet with ICON Network using Flutter framework part 1

bclock forever

Automate Python Script on your Laptop

Relational schema design for LinkedIn

Software Engineering Salaries in Europe vs The United States (2021)

Important facts you need to know before creating a Mobile app

How to Create a Microsoft Flow that calls you once you get an email?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Udhayakumar C

Udhayakumar C

Software Developer @Netcondigital

More from Medium

Vue.js State Managment with Vuex

How to install Strapi v4 with MySQL 8 (part 2)

Working code to build authentication and API security using Node, Express, Passport and JWT

Some UseFul But UnderRated Flutter Plugins