Cheatsheet — nvm macOS
Installation
- Install latest LTS release of NodeJS
nvm install --lts
2. Install a specific node version
nvm install v16.20.1
3. Install the most stable node version from a version series
nvm install 16
List of Node Versions
- Get list of all locally available node versions
nvm ls
2. Get list of all remotely available node versions
nvm ls-remote
Miscellaneous
- Switch the node version and use it in all new terminals by default
nvm alias default 20.11.0 && nvm use default