buymeasoda RefDocs
  • Overview
  • General
    • Android
    • Apache
    • Fish
    • Git
    • Github
    • Gmail
    • Homebrew
    • iOS
    • iTerm
    • MacOS
    • MacPorts
    • Mamp
    • Media
    • Mercurial
    • MySQL
    • Node
    • npm
    • nvm
    • Obsidian
    • PHP
    • React Native
    • Rust
    • Server
    • Slack
    • Sourcegraph
    • Tools
    • Vim
    • VS Code
    • Yarn
  • Unix
    • Checksum and hash utilities
    • Command line history
    • Command line keyboard shortcuts
    • Compress files and folders
    • Crontab
    • Diff files and folders
    • Disk usage and file sizes
    • Find and search files
    • Firewall configuration
    • Help and manual pages
    • HostName and Local HostName for Mac OSX
    • Navigating the file system
    • Network, domains and routing
    • Run and manage background tasks
    • Secure FTP SFTP and Secure Copy SCP
    • Secure Shell SSH
    • Sync files and folders
    • System and process management
    • System and user information
    • Useful characters
    • Useful commands
    • User, file and group permissions
    • Working with cURL
    • Working with files and directories
    • Working with text
Powered by GitBook
On this page
  • Information
  • Installing Versions
  • Switching Versions
  • Run Node Commands
  1. General

nvm

Information

List currently installed node versions

nvm ls

List available remote node versions for install

nvm ls-remote

Show current active node version

nvm current

Show path for specified node version

nvm which <version>

Installing Versions

Install latest node release

nvm install node

Install specific node release (eg. LTS or version number)

nvm install --lts
nvm install <version>
nvm install v16

Install node version specified in project via .nvmrc file

npm install

Switching Versions

Switch to system node version

nvm use system

Switch to a specific node version (eg. LTS or version number)

nvm use --lts
nvm use <version>
nvm use v16

Use node version specified in project via .nvmrc file

npm use

Run Node Commands

Run node scripts for specific versions directly

nvm run <version> <command>
PreviousnpmNextObsidian

Last updated 2 years ago