n [version]

Node version management

Arguments

NameDescription
version

Subcommands

NameDescription
i, installInstall a Node.js version
rm, –Remove a Node.js version
pruneRemove all cached Node.js versions except the installed version
doctorDisplay diagnostics to help resolve problems
uninstallRemove the installed Node.js
ls, listOutput downloaded versions
lsr, ls-remote, list-remoteOutput matching versions available for download
which, binOutput path for downloaded node version
run, use, asExecute downloaded Node.js version with args
execExecute command with modified PATH, so downloaded node version and npm first

Options

NameDescription
-V, --versionOutput version of n
-h, --helpDisplay help information
-p, --preservePreserve npm and npx during install of Node.js
--no-preserveDo not preserve npm and npx during install of Node.js
-q, --quietDisable curl output. Disable log messages processing "auto" and "engine" labels
-d, --downloadDownload only
-a, --arch <Architecture>Override system architecture
--insecure
  • Dangerous 💥
--use-xzOverride automatic detection of xz support and enable use of xz compressed node downloads
--no-use-xzOverride automatic detection of xz support and disable use of xz compressed node downloads