n [version]
Node version management
Arguments
Name | Description |
---|---|
version |
Subcommands
Name | Description |
---|---|
i, install | Install a Node.js version |
rm, – | Remove a Node.js version |
prune | Remove all cached Node.js versions except the installed version |
doctor | Display diagnostics to help resolve problems |
uninstall | Remove the installed Node.js |
ls, list | Output downloaded versions |
lsr, ls-remote, list-remote | Output matching versions available for download |
which, bin | Output path for downloaded node version |
run, use, as | Execute downloaded Node.js version with args |
exec | Execute command with modified PATH, so downloaded node version and npm first |
Options
Name | Description |
---|---|
-V, --version | Output version of n |
-h, --help | Display help information |
-p, --preserve | Preserve npm and npx during install of Node.js |
--no-preserve | Do not preserve npm and npx during install of Node.js |
-q, --quiet | Disable curl output. Disable log messages processing "auto" and "engine" labels |
-d, --download | Download only |
-a, --arch <Architecture> | Override system architecture |
--insecure |
|
--use-xz | Override automatic detection of xz support and enable use of xz compressed node downloads |
--no-use-xz | Override automatic detection of xz support and disable use of xz compressed node downloads |