How to Install Multiple Node.js Versions with NVM

How to Install Multiple Node.js Versions with NVM

How to Install Multiple Node.js Versions with NVM. The best method I found is NVM or Node Version Manager. We’ll look at using NVM to install multiple versions of Node.js and how to switch between them at the drop of a hat. To install NVM it’s as simple as running the authors install script which you can find here. So on I went down the journey of upgrading Node.js.

Recently, while I was updating my website I also wanted to upgrade the Node.js version. Having explored this path in the past I knew it could be painful.

So on I went down the journey of upgrading Node.js. I found there is multiple ways of tackling this problem. But, the best method I found is  NVM or Node Version Manager.

In this post, we’ll look at using NVM to install multiple Node.js versions and how to switch between them at the drop of a hat.

Installing NVM

To install NVM it’s as simple as running the authors install script which you can find  here. You can either paste this into your terminal or you can run one of the below curl or wget commands to do it for you:

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

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

After running this script, you should notice the NVM repository has been copied into a ~/.nvm folder. Following this, the below code should now be added to your current terminal profile.

nodejs coding javascript

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

4 Ways You Can Get Rid of Dirty Side Effects for Cleaner Code in JavaScript

4 Ways You Can Get Rid of Dirty Side Effects for Cleaner Code in JavaScript. Bugs are born in many ways. Creating side effects is one of them. Some people say side effects are evil, some say they’re not.

Top 5 Tips for Making Your NodeJS code Easier to Read

In this article, we’ll look at 5 tips for making your NodeJS code easier to read and understand. How to Make Your Node.js Code Easier to Read

Static Code Analysis: What It Is? How to Use It?

Static code analysis is a method of debugging by examining source code before a program is run. It's done by analyzing a set of code against a set (or multiple sets) of coding rules. Static code analysis and static analysis are often used interchangeably, along with source code analysis.

Who Else Wants to Write Clean JavaScript Code?

Who Else Wants to Write Clean JavaScript Code? 7 Tips to Make Your Coworkers Fall in Love With Your Code.

Top 15 Simple Coding Techniques to Get Your Tasks Done with Shorter Code in JavaScript

Don’t waste time writing long code while you can make it short, yet clearer and easier to read. In this Javascript tutorial, we'll discuss 15 Simple Coding Techniques to Get Your Tasks Done with Shorter Code in JavaScript