1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/n.md

25 lines
444 B
Markdown
Raw Normal View History

2017-04-24 12:37:58 +08:00
# n
> Manage multiple node versions.
> More information: <https://github.com/tj/n>.
2017-04-24 12:37:58 +08:00
- Install a given version of node. If the version is already installed, it will be activated:
`n {{version}}`
- Display installed versions and interactively activate one of them:
`n`
- Remove a version:
`n rm {{version}}`
- Execute a file with a given version:
`n use {{version}} {{file.js}}`
- Output binary path for a version:
`n bin {{version}}`