mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-15 18:55:48 +02:00
nvm: update and expand page
- Add uninstall command - Improve some command descriptions - Reword main description - Standardize spelling/capitalization of "Node.js"
This commit is contained in:
parent
3e94a3191a
commit
52bd8f25ba
1 changed files with 13 additions and 8 deletions
|
@ -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: <https://github.com/creationix/nvm>.
|
||||
|
||||
- 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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue