nvm
Install, uninstall, or switch between Node.js versions. tldr-pages
On Windows
Several platforms
Install, uninstall, or switch between Node.js versions. Supports version numbers like "12.8" or "v16.13.1", and labels like "node", "system", etc.
Install/uninstall a specific version of Node.js
nvm install node_versionIdentifyUse a specific version of Node.js in the current shell
nvm use node_versionIdentifySet the default Node.js version
nvm alias default node_versionIdentifyList remote versions available for install, only show LTS (long-term support) versions
nvm ls-remote --ltsIdentifyList installed versions
nvm [lsIdentifyLaunch the REPL of a specific version of Node.js
nvm run node_versionIdentifyExecute a script in a specific version of Node.js
nvm exec node_version node path/to/script.jsIdentifyUpgrade to the latest working npm version on the current Node.js version
nvm install-latest-npmIdentifyWindows
Install, uninstall, or switch between Node.js versions. Supports version numbers like "12.8" or "v16.13.1", and labels like "stable", "system", etc.
Install a specific version of Node.js
nvm install node_versionIdentifySet the default version of Node.js (must be run as Administrator)
nvm use node_versionIdentifyList all available Node.js versions and highlight the default one
nvm listIdentifyList all remote Node.js versions
nvm ls-remoteIdentifyUninstall a given Node.js version
nvm uninstall node_versionIdentify