Logo

dev-resources.site

for different kinds of informations.

Install/Use Any Version of Node.js with nvm (Node Version Manager)

Published at
11/11/2024
Categories
node
nvm
webdev
javascript
Author
anhdung
Categories
4 categories in total
node
open
nvm
open
webdev
open
javascript
open
Author
7 person written this
anhdung
open
Install/Use Any Version of Node.js with nvm (Node Version Manager)

Managing multiple versions of Node.js can be frustrating if you don’t have a quick way to install the needed version, especially across different OS platforms.

Thankfully, nvm (Node Version Manager) supports Unix, MacOS, and WSL for managing Node.js versions efficiently.

Initially, I thought of writing a lot, but here has everything you need and more 😥😥

Image description

Run this command in the terminal:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
Enter fullscreen mode Exit fullscreen mode

Or

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
Enter fullscreen mode Exit fullscreen mode

Then, run:

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Enter fullscreen mode Exit fullscreen mode

Done. Now, use nvm install node to install the latest version or nvm ls to view available Node.js versions.

Cover photo by Lautaro Andreani

nvm Article's
30 articles in total
Favicon
"nvm use" does not work with nvm-windows
Favicon
📦 ASDF: Gerenciando versões de linguagens e ferramentas num lugar só
Favicon
Setup NVM in your organization/admin system's like a pro
Favicon
Eligiendo la versión por defecto de node con nvm
Favicon
Migrating from nvm to mise
Favicon
OMZ: Some Plugins that I forget about
Favicon
Install/Use Any Version of Node.js with nvm (Node Version Manager)
Favicon
Brave New World: Environments
Favicon
Upgrading Node.js on Linux using NVM
Favicon
Meet phpvm: Your New PHP Best Friend Forever!
Favicon
Changing the Angular CLI version
Favicon
Como Instalar o Node.js LTS Usando o NVM
Favicon
How to install Node.js, NPM and NVM on Windows (node version manager)
Favicon
Seamlessly Manage Node.js Versions on Windows with nvm
Favicon
How to use NVM in Laravel Forge
Favicon
Understanding NPM and NVM: Essential Tools for Node.js Development
Favicon
Advanced NVM Commands for Efficient Node.js Version Management
Favicon
Why Specifying the Node.js Version is Essential
Favicon
NVM Install On Your PC
Favicon
Manage Node.js version for a project using NVM and .nvmrc file
Favicon
A simple, cross-platform, and well-tested version manager for multiple SDKs.
Favicon
Node Version Manager (nvm) overview
Favicon
NVM tips and tricks
Favicon
nvm으로 node 버전 관리하기
Favicon
HOW TO INSTALL NVM ON WINDOWS
Favicon
Installing and Managing Different Versions of Node.js with NVM
Favicon
✨ Consistency and Efficiency with .nvmrc
Favicon
NVM – Node Version Manager
Favicon
Setup Node and NVM with Fish Shell
Favicon
nvm 설치, 2024-01-24

Featured ones: