diff --git a/pages/common/nvm.md b/pages/common/nvm.md index 150e7c9c9b..83469523e3 100644 --- a/pages/common/nvm.md +++ b/pages/common/nvm.md @@ -1,28 +1,33 @@ # nvm -> Node.js version manager. -> Switch between NodeJS versions: system, node, 0.10, 0.12, 4.2 etc. +> Install, uninstall or switch between Node.js versions. +> Supports version numbers like "0.12" or "v4.2", and labels like "stable", "system", etc. +> Homepage: . -- Install a specific version of NodeJS: +- Install a specific version of Node.js: `nvm install {{node_version}}` -- Use a specific version NodeJS in the current shell: +- Use a specific version of Node.js in the current shell: `nvm use {{node_version}}` -- Set the default NodeJS version: +- Set the default Node.js version: `nvm alias default {{node_version}}` -- List all available NodeJS versions and print the default one: +- List all available Node.js versions and highlight the default one: `nvm list` -- Run a specific version NodeJS REPL: +- Uninstall a given Node.js version: + +`nvm uninstall {{node_version}}` + +- Launch the REPL of a specific version of Node.js: `nvm run {{node_version}} --version` -- Run app in a specific version of NodeJS: +- Execute a script in a specific version of Node.js: `nvm exec {{node_version}} node {{app.js}}`