n
node
TLDR
Install latest Node.js
$ n latest
Install LTS versioncopy
$ n lts
Install specific versioncopy
$ n [18.16.0]
List installed versionscopy
$ n ls
Switch to installed versioncopy
$ n
Remove versioncopy
$ n rm [18.16.0]
Run specific versioncopy
$ n run [18.16.0] [script.js]
Purge all versionscopy
$ n prune
copy
SYNOPSIS
n [command] [version]
DESCRIPTION
n is a Node.js version manager. It installs and switches between Node.js versions.The tool manages multiple installations. Simple interface for version control.
PARAMETERS
VERSION
Node.js version number.latest
Install latest version.lts
Install LTS version.ls
List installed versions.rm VERSION
Remove version.run VERSION
Run with specific version.prune
Remove old versions.--help
Display help information.
CAVEATS
Requires sudo for global install. Simpler than nvm. Bash script based.
HISTORY
n was created by TJ Holowaychuk as a simpler alternative to nvm for Node.js version management.