NVM (Node Version Manager) Installation Guide
This guide provides all the key information and getting-started instructions after installing NVM (Node Version Manager) via DeploySage-CLI.
Getting Started: Installing Node.js
NVM is installed, but you don't have a version of Node.js yet. Your first step is to install a Node.js version. The latest Long-Term Support (LTS) version is usually the best choice.
# Install the latest LTS version of Node.js
nvm install --lts
# After installation, NVM will automatically use the new version.
# Verify the installation:
node -v
npm -v
Core Commands
NVM allows you to easily manage multiple Node.js versions.
# List all available remote versions
nvm ls-remote
# Install a specific version
nvm install 20.11.0
# List all locally installed versions
nvm ls
# Switch to another installed version
nvm use 20.11.0
# Set a default version for new shells
nvm alias default 20.11.0
Environment and Project Configuration
| Item | Value |
|---|---|
| NVM Directory | ~/.nvm/ |
| Environment Script | ~/.bashrc |