<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/blog/managing-multiple-nodejs-versions/" -->

---
title: Managing multiple NodeJS versions | daily.dev
description: We all switch around different projects, sometimes even daily. Every project has a different NodeJS version. Learn how to manage it with nvm
canonical: https://daily.dev/blog/managing-multiple-nodejs-versions/
og:type: article
og:url: https://daily.dev/blog/managing-multiple-nodejs-versions/
og:title: Managing multiple NodeJS versions | daily.dev
og:description: We all switch around different projects, sometimes even daily. Every project has a different NodeJS version. Learn how to manage it with nvm
og:image: https://media.daily.dev/image/upload/s--637b6Axe--/f_auto,q_auto/v1/recruiter-landing/5f5e27bb5a2d081e546aec0b_artem_kniaz_x1_Qw2g_CPMUU_unsplash_eb12f620f3?_a=BAMAMiB80
og:site_name: daily.dev
og:locale: en_US
article:published_time: 2020-09-14
article:modified_time: 2026-05-15T14:26:22.570Z
article:author:  Ido Shamun
twitter:card: summary_large_image
twitter:site: @dailydotdev
twitter:creator: @dailydotdev
twitter:title: Managing multiple NodeJS versions | daily.dev
twitter:description: We all switch around different projects, sometimes even daily. Every project has a different NodeJS version. Learn how to manage it with nvm
twitter:image: https://media.daily.dev/image/upload/s--637b6Axe--/f_auto,q_auto/v1/recruiter-landing/5f5e27bb5a2d081e546aec0b_artem_kniaz_x1_Qw2g_CPMUU_unsplash_eb12f620f3?_a=BAMAMiB80
---

We all switch around different projects, sometimes even daily. Every project has its own requirements in terms of dependencies and runtime. Lucky for us, NPM takes care of the dependencies but we still need to manage the runtime. Some projects may use a LTS version and others may live on the edge and use the latest version of node.

## Meet NVM

nvm (node version manager) manages multiple node versions and switch between them in an instant.  
Even if you use a single node version, it's so much easier to install and update it via nvm.

## Installing

Install it using this one-liner:  

```

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

Or check out the full instructions on the [GitHub repo](https://github.com/nvm-sh/nvm)

## Getting Started

Let's say we want to install node v14.3.0, it's easy as:  

```

nvm install 14.3.0
```

Just change 14.3.0 to your required version.

If you want to install the latest LTS, run:

```
nvm install --lts
```

Once we have a few node versions installed we can activate a specific version with the use command:  

```
nvm use 14.3.0
```

## Global modules

Global modules are not shared across different node versions. You have to install the global dependencies for every node version. It can be annoying but it makes sense. Some dependencies might not be compatible with certain node version.

## .nvmrc

Here is the best part! You can add to your project a .nvmrc file to specify exactly the node version.  
Going back to our example before, let's save our node version to .nvmrc.  

```
echo "14.3.0" > .nvmrc
```

Now every time I cd into this directory or its children, I can run nvm use to activate the version of my project. In our case it's 14.3.0.

I can even commit this file to the git repo so other developers can use it as well.

That's it! Now you can easily switch between projects without thinking about the desired node version. 👾

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/og-image.png?v=a830cdf1","width":1200,"height":630},"sameAs":["https://twitter.com/dailydotdev","https://www.linkedin.com/company/dailydotdev","https://github.com/dailydotdev","https://www.instagram.com/dailydotdev"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","description":"Free, personalized developer news aggregator. Stay on top of software development news, AI coding tools, and web dev - curated daily from trusted sources.","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://daily.dev/blog/managing-multiple-nodejs-versions/","url":"https://daily.dev/blog/managing-multiple-nodejs-versions/","name":"Managing multiple NodeJS versions | daily.dev","description":"We all switch around different projects, sometimes even daily. Every project has a different NodeJS version. Learn how to manage it with nvm","inLanguage":"en-US","isPartOf":{"@id":"https://daily.dev/#website"}},{"@type":"Article","@id":"https://daily.dev/blog/managing-multiple-nodejs-versions/#article","headline":"Managing multiple NodeJS versions","url":"https://daily.dev/blog/managing-multiple-nodejs-versions/","datePublished":"2020-09-14","dateModified":"2026-05-15T14:26:22.570Z","isPartOf":{"@id":"https://daily.dev/#website"},"publisher":{"@id":"https://daily.dev/#organization"},"mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/blog/managing-multiple-nodejs-versions/"},"description":"We all switch around different projects, sometimes even daily. Every project has a different NodeJS version. Learn how to manage it with nvm","image":{"@type":"ImageObject","url":"https://media.daily.dev/image/upload/s--637b6Axe--/f_auto,q_auto/v1/recruiter-landing/5f5e27bb5a2d081e546aec0b_artem_kniaz_x1_Qw2g_CPMUU_unsplash_eb12f620f3?_a=BAMAMiB80"},"author":{"@type":"Person","name":" Ido Shamun","url":"https://app.daily.dev/idoshamun"},"potentialAction":{"@type":"ReadAction","target":"https://daily.dev/blog/managing-multiple-nodejs-versions/"}},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https://daily.dev/blog/"},{"@type":"ListItem","position":3,"name":"Backend","item":"https://daily.dev/categories/backend/"},{"@type":"ListItem","position":4,"name":"Managing multiple NodeJS versions","item":"https://daily.dev/blog/managing-multiple-nodejs-versions/"}]}]}
```

