CmdID

CmdID / Commands

nvm

Install, uninstall, or switch between Node.js versions. tldr-pages

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

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_versionIdentify

Use a specific version of Node.js in the current shell

nvm use node_versionIdentify

Set the default Node.js version

nvm alias default node_versionIdentify

List remote versions available for install, only show LTS (long-term support) versions

nvm ls-remote --ltsIdentify

List installed versions

nvm [lsIdentify

Launch the REPL of a specific version of Node.js

nvm run node_versionIdentify

Execute a script in a specific version of Node.js

nvm exec node_version node path/to/script.jsIdentify

Upgrade to the latest working npm version on the current Node.js version

nvm install-latest-npmIdentify

Windows

from tldr-pages, CC BY 4.0

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_versionIdentify

Set the default version of Node.js (must be run as Administrator)

nvm use node_versionIdentify

List all available Node.js versions and highlight the default one

nvm listIdentify

List all remote Node.js versions

nvm ls-remoteIdentify

Uninstall a given Node.js version

nvm uninstall node_versionIdentify