Logo

dev-resources.site

for different kinds of informations.

Node Version Manager (nvm) overview

Published at
5/8/2024
Categories
node
nvm
Author
zsevic
Categories
2 categories in total
node
open
nvm
open
Author
6 person written this
zsevic
open
Node Version Manager (nvm) overview

nvm facilitates switching between different Node versions across projects. This post covers its overview from installation to version management.

Installation

To install nvm, execute the following commands in your terminal. This example uses zsh, but the process is similar for other shells like bash.

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

Version management

  • Install the specific version. Including the v prefix is optional.
nvm install v21.7.2
Enter fullscreen mode Exit fullscreen mode
  • Install the latest version
nvm install node
Enter fullscreen mode Exit fullscreen mode
  • Install the latest one for the specified major version
nvm install 22
Enter fullscreen mode Exit fullscreen mode
  • Switch to a specific installed version
nvm use 21
Enter fullscreen mode Exit fullscreen mode
  • Add .nvmrc file inside the project directory and run nvm use command to use the specified installed version.
v21.7.2
Enter fullscreen mode Exit fullscreen mode
  • Get the list of locally installed versions
nvm ls
Enter fullscreen mode Exit fullscreen mode
  • Get the list of available versions for installation
nvm ls-remote
Enter fullscreen mode Exit fullscreen mode

Course

Build your SaaS in 2 weeks - Start Now

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: