*NIX (Linux, OS X, ...)

Use n, an extremely simple Node version manager that can be installed via npm.

Say you want Node.js v0.10.x to build Atom.

npm install -g n   # Install n globally
n 0.10.33          # Install and use v0.10.33
Usage:
n                            # Output versions installed
n latest                     # Install or activate the latest node release
n stable                     # Install or activate the latest stable node release
n <version>                  # Install node <version>
n use <version> [args ...]   # Execute node <version> with [args ...]
n bin <version>              # Output bin path for <version>
n rm <version ...>           # Remove the given version(s)
n --latest                   # Output the latest node version available
n --stable                   # Output the latest stable node version available
n ls                         # Output the versions of node available

 

Windows

Use nvm-windows, it's like nvm but for Windows. Download and run the installer, then:

nvm install v0.10.33         # Install v0.10.33
nvm use v0.10.33             # Use v0.10.33
Usage:
nvm install [version]        # Download and install [version]
nvm uninstall [version]      # Uninstall [version]
nvm use [version]            # Switch to use [version]
nvm list                     # List installed versions
Answer from Dennis on Stack Overflow
Top answer
1 of 16
834

*NIX (Linux, OS X, ...)

Use n, an extremely simple Node version manager that can be installed via npm.

Say you want Node.js v0.10.x to build Atom.

npm install -g n   # Install n globally
n 0.10.33          # Install and use v0.10.33
Usage:
n                            # Output versions installed
n latest                     # Install or activate the latest node release
n stable                     # Install or activate the latest stable node release
n <version>                  # Install node <version>
n use <version> [args ...]   # Execute node <version> with [args ...]
n bin <version>              # Output bin path for <version>
n rm <version ...>           # Remove the given version(s)
n --latest                   # Output the latest node version available
n --stable                   # Output the latest stable node version available
n ls                         # Output the versions of node available

 

Windows

Use nvm-windows, it's like nvm but for Windows. Download and run the installer, then:

nvm install v0.10.33         # Install v0.10.33
nvm use v0.10.33             # Use v0.10.33
Usage:
nvm install [version]        # Download and install [version]
nvm uninstall [version]      # Uninstall [version]
nvm use [version]            # Switch to use [version]
nvm list                     # List installed versions
2 of 16
676

One way is to use NVM, the Node Version Manager.

Use following command to get nvm

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

You can find it at https://github.com/creationix/nvm

It allows you to easily install and manage multiple versions of node. Here's a snippet from the help:

Usage:
nvm install <version>       Download and install a <version>
nvm use <version>           Modify PATH to use <version>
nvm ls                      List versions (installed versions are blue)
🌐
Latenode
community.latenode.com › other questions › npm
Managing npm versions with nvm - how to switch between different npm releases? - NPM - Latenode Official Community
June 18, 2025 - I’m working with nvm to manage multiple Node.js versions on my system and it’s been great for switching between different Node releases. Each time I install a new Node version through nvm, it comes bundled with its own n…
Discussions

Tip for easily switching between Node.js versions ?
🌐 r/node
16
7
October 6, 2025
change node version or unistall
Check out nvm to help manage multiple versions of node. https://github.com/nvm-sh/nvm More on reddit.com
🌐 r/node
12
0
January 16, 2022
🌐
Microsoft Learn
learn.microsoft.com › en-us › windows › dev-environment › javascript › nodejs-on-windows
Set up Node.js on native Windows | Microsoft Learn
After installing the Node.js version ... project, create a new project directory mkdir NodeTest, and enter the directory cd NodeTest, then enter nvm use <version> replacing <version> with the version number you'd like to use (ie ...
🌐
Refine
refine.dev › home › blog › engineering › how to change node version
How to Change Node Version | Refine
March 27, 2024 - This command fetches and displays a list of all Node.js versions available for installation. Changing Node.js versions is as simple as using the nvm use command followed by the version number.
🌐
BairesDev
bairesdev.com › home › blog › software development
Change Node Version: A Step-by-Step Guide | All Environments
The above command will download and run the NVM installation script installing the latest version of Node Version Manager (NVM) on your system to help you with changing of NodeJS versions in your workflow during NodeJS development.
🌐
Reddit
reddit.com › r/node › tip for easily switching between node.js versions ?
r/node on Reddit: Tip for easily switching between Node.js versions ?
October 6, 2025 -

Hello everyone 👋

I'm quite new to the Node.js ecosystem and I've run into a problem. I'm working on a school project that requires a specific Node version (let's say v16), but at the same time, I'm trying to run a personal project I found on GitHub that only works with the latest version (v20+).

For now, my only solution is to uninstall and reinstall the correct version every time I switch projects, which is really tedious 😥

I imagine there must be a simpler way to do this. How do you easily switch between Node.js versions on your machine? Is there a 'standard' tool that everyone uses?

Thanks in advance for your help 🙏

🌐
LogRocket
blog.logrocket.com › home › switching between node versions during development
Switching between Node versions during development - LogRocket Blog
June 4, 2024 - The first application is an Angular 12 app running on Node 14.19.0, while the second application is an Angular 11 app running on Node 12.11.1. Here is what you need to accomplish: ... You are actually going to need three versions of Node to complete your tasks because the Angular 13 upgrade requires you to upgrade Application 2 to Node 14.15.0 or greater; we’ll use 16.18.1.
Find elsewhere
🌐
Laravel Herd
herd.laravel.com › docs › macos › technology › node-versions
Manage Node.js - Laravel Herd
You can use nvm on your command line to install, update and switch between Node.js versions any time. To switch to a different version, simply enter nvm use VERSION and nvm runs all required commands to change the version and make it accessible ...
🌐
LogRocket
blog.logrocket.com › home › how to switch node.js versions: a cross-platform guide for nvm and alternatives
How to switch Node.js versions: A cross-platform guide for NVM and alternatives - LogRocket Blog
March 24, 2025 - Switch between Node.js versions with NVM, simplifying your development process by managing and installing multiple Node environments.
🌐
Swovo
swovo.com › blog › how-to-set-a-default-node-version-with-nvm
How to Change Node Version with NVM (and Set Default) | Swovo
January 25, 2024 - ... Use nvm alias default <version_number> to set your preferred version as the default. For example, nvm alias default 14.17.0. Changing Node versions is a frequent task, especially when working on multiple projects.
🌐
Medium
medium.com › @jamylam3 › easily-switch-between-node-versions-using-node-version-manager-nvm-14619007ebef
EASILY SWITCH BETWEEN NODE VERSIONS USING NODE VERSION MANAGER (NVM) | by Mila | Medium
November 15, 2023 - EASILY SWITCH BETWEEN NODE VERSIONS USING NODE VERSION MANAGER (NVM) As developers, we’ve most likely used the ‘npm install’ command when setting up project dependencies. Sometimes the package …
🌐
Ben Frain
benfrain.com › managing-multiple-versions-of-node-without-nvm-or-additional-tools
Managing multiple versions of node, without NVM or additional tools – Ben Frain
October 21, 2024 - A way to point your system to different versions if you will. Another dev (Hi Sam!) gave me the idea and I’m just writing out the detail here for future reference. Practically, you will be able to enter nr in your Terminal to switch to Node v22.9.00 for your Node React project, or ns to switch to an older version of Node to support an older Svelte project that needed v10.9.3, or whatever.
🌐
Fjolt
fjolt.com › article › javascript-change-nodejs-version
How to Change Node.js Version
To change Node.JS versions, we have to first download the version we want. Make sure you have nvm installed first.
🌐
Lucent Innovation
lucentinnovation.com › lucent innovation › technology posts › a comprehensive guide on changing node.js version
How to Change Node.js Version? Step-by-Step Process
January 9, 2026 - Learn how to check, upgrade and downgrade node.js version with simple instruction for Windows, Linux, and macOS environment.
Price   $15 - $59
Address   2055 Limestone Rd STE 200-C, 19808, Wilmington
(5.0)
🌐
Medium
medium.com › @madhawaawishka › switching-node-js-versions-with-nvm-53aff64ac4f2
Switching Node.js Versions with nvm | by Madhawa Awishka | Medium
July 17, 2024 - In fact, you will most likely get a warning that says ... Instead of uninstalling the currently installed version and again installing the required version you can use nvm to simply change between node versions.
🌐
NodeSource
nodesource.com › blog › Update-nodejs-versions-on-windows
How to Update Node.js Versions on Windows
February 4, 2025 - Go to the official Node.js website. Choose either the LTS (Long-Term Support) version for stability or the Current version for the latest features.
🌐
PhoenixNAP
phoenixnap.com › home › kb › devops and development › how to update node.js version on linux, windows, and macos
How to Update Node.js Version on Linux, Windows, and macOS
December 10, 2025 - Choose the LTS (long-term support) version for the latest stable version or the Current version for bleeding-edge features. 2. Double-click the file to run the installation wizard. Accept the license agreement, choose the destination folder, and select the features to install. 3. When the process completes, verify the installation by running the command below: ... If you have previously installed nvm or n packages, use them to update Node.js, and select which version to use.