Carlos Marchani
Managing Versions of Node.js
In this post, we discuss how to manage the different versions of Node.js installed on your system for development and / or testing.
The Node version manager (nvm) allow one to easily switch between different versions of node and Node package manager (npm). Here are useful nvm commands:
To list installed versions of Node.js:
nvm list
To install a specific version of Node.js (e.g., 12.3.1):
nvm install 12.3.1
To switch to a specific version of Node.js (e.g., 12.3.1):
nvm use 12.3.1
To set the default version of Node.js (e.g., 12.3.1):