How to Change Node.js Version Between Projects Using NVM

How to Change Node.js Version Between Projects Using NVM

Manage multiple projects with different versions of Node on your machine. Node v14.0.0 is out and this time I want to show I managed to change Node to different versions. Changing the Node.js version between projects using NVM really help me to handle and switch between multiple project versions. It really increases the power of the Node.js ecosystem. This is essential for me because some of my projects run in different versions.

Node v14.0.0 is out and this time I want to show I managed to change Node to different versions. Changing the Node.js version between projects using NVM really help me to handle and switch between multiple project versions. It really increases the power of the Node.js ecosystem. This is essential for me because some of my projects run in different versions.

Many of my projects have been based on the Node.js ecosystem — Gulp.js, Express.js, and other libraries like React.js developed in the Next.js framework. For quite some time they updated and released new versions and several of them required upgrading the Node.js version. So, this article is about how to update the Node versions between projects.


Unless you already use Docker container projects, you’ll be fine with your Node version. But that’s another different topic from this one that probably I’ll probably share it with you too in the future. This is my story about how I am using NVM on top of all my Node.js projects in my macOS machine.


Note: If you already have a previous Node.js in your machine, that version will still available for you to use as the default version on your machine, in case you decide to use and install NVM.

Checking default Node.js version

Default Node.js version in my MacOS

nodejs programming npm javascript typescript

Bootstrap 5 Complete Course with Examples

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

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

The What, Why, and How of TypeScript for JavaScript Developers

A typed introduction to JavaScript .The What, Why, and How of TypeScript for JavaScript Developers

Create NPM JavaScript Packages using TypeScript

In this lesson we looking at how you can easily create an NPM JavaScript package using TypeScript 🌹

Typescript — Hello World Program

In this lesson, we are going to learn about the basic structure of a TypeScript program and understand a few concepts of the compilation process. Then we will see how we can run the compiled JavaScript program using node and ts-node.

What is TypeScript? Why TypeScript? and Why Not TypeScript?

TypeScript extends JavaScript by adding Types. There are many great reasons to switch to TypeScript. Especially if your team uses JavaScript. There are some reasons to not use TypeScript as there are with any language or framework.

Developing and Publishing a TypeScript NPM Package

I’ll take you through the step-by-step to learn how to develop and publish a TypeScript NPM package. We’ll start by developing a very simple npm package using TypeScript. We’ll also cover unit testing, test coverage and code analysis