nvm

Node Package Manager

Subcommands

NameDescription
installDownload and install a <version>. Uses .nvmrc if available and version is omitted
uninstallUninstall a version
useModify PATH to use <version>. Uses .nvmrc if available and version is omitted
execRun <command> on <version>. Uses .nvmrc if available and version is omitted
runRun `node` on <version> with <args> as arguments. Uses .nvmrc if available and version is omitted
currentDisplay currently activated version of Node
lsList installed versions, matching a given <version> if provided
ls-remoteList remote versions available for install, matching a given <version> if provided
versionResolve the given description to a single local version
version-remoteResolve the given description to a single remote version
deactivateUndo effects of `nvm` on current shell
aliasShow all aliases beginning with <pattern> or Set an alias named <name> pointing to <version>
unaliasDeletes the alias named <name>
install-latest-npmAttempt to upgrade to the latest working `npm` on the current node version
reinstall-packagesReinstall global `npm` packages contained in <version> to current version
unloadUnload `nvm` from shell
whichDisplay path to installed node version. Uses .nvmrc if available and version is omitted
cache
set-colorsSet five text colors using format "yMeBg". Available when supported

Options

NameDescription
--helpShow help page
--versionPrint out the installed version of nvm
--no-colorsSuppress colored output