nvm

nvm

TLDR

Install a specific version of Node.js

$ nvm install [node_version]
copy

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

$ nvm use [node_version]
copy

Set the default Node.js version

$ nvm alias default [node_version]
copy

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

$ nvm list
copy

Uninstall a given Node.js version

$ nvm uninstall [node_version]
copy

Launch the REPL of a specific version of Node.js

$ nvm run [node_version] --version
copy

Execute a script in a specific version of Node.js

$ nvm exec [node_version] node [app.js]
copy

Copied to clipboard
Earn up to $40 for learning about crypto currencies