*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
๐ŸŒ
SitePoint
sitepoint.com โ€บ blog โ€บ javascript โ€บ installing multiple versions of node.js using nvm
Installing Multiple Versions of Node.js Using nvm โ€” SitePoint
March 3, 2025 - One of the most important parts of nvm is, of course, installing different versions of Node.js. For this, nvm provides the nvm install command. You can install specific versions by running this command followed by the version you want.
Top answer
1 of 16
833

*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
677

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)
๐ŸŒ
GitHub
gist.github.com โ€บ MichaelCurrin โ€บ 5c2d59b2bad4573b26d0388b05ab560e
Install Node using NVM ยท GitHub
Select the installed version. ... Check that your target Node.js version works. $ node -v v14.9.0 $ npm -v 6.14.8 $ which node /Users/mcurrin/.nvm/versions/node/v14.9.0/bin/node
๐ŸŒ
DreamHost
help.dreamhost.com โ€บ hc โ€บ en-us โ€บ articles โ€บ 360029083351-Installing-a-custom-version-of-NVM-and-Node-js
Installing a custom version of NVM and Node.js โ€“ DreamHost Knowledge Base
[server]$ setfattr -n user.pax.flags -v "mr" $(find $NVM_DIR -type f -iname "node" -o -iname "npm" -o -iname "npx") This will need to be done each time a new version is installed.
๐ŸŒ
GitHub
github.com โ€บ nvm-sh โ€บ nvm
GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
You can create a .nvmrc file containing a node version number (or any other string that nvm understands; see nvm --help for details) in the project root directory (or any parent directory). Afterwards, nvm use, nvm install, nvm exec, nvm run, ...
Starred by 90.3K users
Forked by 9.7K users
Languages ย  Shell 98.0% | Makefile 1.2%
๐ŸŒ
HeyNode
heynode.com โ€บ tutorial โ€บ install-nodejs-locally-nvm
Install Node.js Locally with Node Version Manager (nvm) | HeyNode
Practically this means that anytime you start a new shell, and the nvm.sh script is sourced, it will default that shell to using the installed lts release. You can change this behavior using the nvm alias command. Example to set the default version of node to use when starting a new shell to 10.0.0:
๐ŸŒ
Fishtank
getfishtank.com โ€บ insights โ€บ use-nvm-to-install-multiple-node-versions
Use NVM to Install Multiple Node Versions on Windows | Fishtank
That's it, folks. Now you can have multiple versions of node installed on your machine. To recap, run: nvm install <version> to install a specified version.
๐ŸŒ
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 - After running the Windows installer, use the following commands to install and switch the Node.js version. Those commands are the same as in the Linux environment: # Install a specific Node.js version nvm install 20.18.0 # Switch to it nvm use ...
Find elsewhere
๐ŸŒ
Linode
linode.com โ€บ docs โ€บ guides โ€บ how-to-install-use-node-version-manager-nvm
How to Install and Use NVM (Node Version Manager) | Linode Docs
November 29, 2023 - Install any additional versions of Node you want to use. You can specify either a major or minor release of Node to install. nvm install 17.0.1 # Specific minor release nvm install 19 # Specify major release only
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ node-version-manager-nvm-install-guide
Node Version Manager โ€“ NVM Install Guide
September 9, 2022 - This will install the X.Y.Z Node version. You can also make a version your default by running: ... NVM makes it easier to manage multiple versions of Node.js across different projects that require different versions.
๐ŸŒ
Microsoft Learn
learn.microsoft.com โ€บ en-us โ€บ windows โ€บ dev-environment โ€บ javascript โ€บ nodejs-on-windows
Set up Node.js on native Windows | Microsoft Learn
The installer will point you to the releases page for the most recent version. Download the nvm-setup.zip file for the most recent release. Once downloaded, open the zip file, then open the nvm-setup.exe file.
๐ŸŒ
Medium
medium.com โ€บ geekculture โ€บ how-to-install-node-js-by-nvm-61addf4ab1ba
How to install Node.js by NVM? Manage multiple versions of Node.js with nvm. | by Masud Afsar | Medium | Geek Culture
May 12, 2023 - You can install a specific version by nvm with install subcommand. ... If you want to install the LTS version you can use --lts instead of version number. ... Or you can install the latest version with node instead of version number.
๐ŸŒ
Nvmnode
nvmnode.com
NVM - Node.js Version Manager tool - NVM Documentation
# Install a specific Node.js version nvm install 18.16.0 # Use the installed version nvm use 18.16.0 # Set a default version nvm alias default 18.16.0
๐ŸŒ
Tericcabrel
blog.tericcabrel.com โ€บ install-node-with-nvm
Install Node.js Locally with NVM (Node Version Manager)
May 28, 2025 - Create a file named .nvmrc and the version you want to install inside; you can now run nvm use without specifying a version, NVM will read the Node version in the file, install t if needed, and finally enable it as the current version.
๐ŸŒ
Hostman
hostman.com โ€บ tutorials โ€บ installing and using nvm (node version manager)
How to Install and Use NVM (Node Version Manager) for Node.js Version Management
December 27, 2024 - Create it using nano editor: nano ~/.bashrc 3. Add the following content: export NVM_DIR="$HOME/.nvm"[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" Run the command below so changes will take effect. source ~/.bashrc With NVM installed, install the specific versions of Node.js.
Price ย  $
Call ย  +1 844 286 2130
Address ย  1999 Harrison St 1800 9079, 94612, Oakland