1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-16 08:15:50 +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:
Waldir Pimenta 2019-01-10 17:22:07 +00:00 committed by Agniva De Sarker
parent 3e94a3191a
commit 52bd8f25ba

View file

@ -1,28 +1,33 @@
# nvm # nvm
> Node.js version manager. > Install, uninstall or switch between Node.js versions.
> Switch between NodeJS versions: system, node, 0.10, 0.12, 4.2 etc. > 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}}` `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}}` `nvm use {{node_version}}`
- Set the default NodeJS version: - Set the default Node.js version:
`nvm alias default {{node_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` `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` `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}}` `nvm exec {{node_version}} node {{app.js}}`