LinuxCommandLibrary

n

node

TLDR

Install latest Node.js

$ n latest
copy
Install LTS version
$ n lts
copy
Install specific version
$ n [18.16.0]
copy
List installed versions
$ n ls
copy
Switch to installed version
$ n
copy
Remove version
$ n rm [18.16.0]
copy
Run specific version
$ n run [18.16.0] [script.js]
copy
Purge all versions
$ 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.

SEE ALSO

nvm(1), node(1), npm(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community