mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-31 08:17:59 +01:00
52bd8f25ba
- Add uninstall command - Improve some command descriptions - Reword main description - Standardize spelling/capitalization of "Node.js"
33 lines
783 B
Markdown
33 lines
783 B
Markdown
# nvm
|
|
|
|
> Install, uninstall or switch between Node.js versions.
|
|
> Supports version numbers like "0.12" or "v4.2", and labels like "stable", "system", etc.
|
|
> Homepage: <https://github.com/creationix/nvm>.
|
|
|
|
- Install a specific version of Node.js:
|
|
|
|
`nvm install {{node_version}}`
|
|
|
|
- Use a specific version of Node.js in the current shell:
|
|
|
|
`nvm use {{node_version}}`
|
|
|
|
- Set the default Node.js version:
|
|
|
|
`nvm alias default {{node_version}}`
|
|
|
|
- List all available Node.js versions and highlight the default one:
|
|
|
|
`nvm list`
|
|
|
|
- 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`
|
|
|
|
- Execute a script in a specific version of Node.js:
|
|
|
|
`nvm exec {{node_version}} node {{app.js}}`
|