Linux command
n 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Install latest Node.js
n latest
Install LTS version
n lts
Install specific version
n [18.16.0]
List installed versions
n ls
Switch to installed version
n
Remove version
n rm [18.16.0]
Run specific version
n run [18.16.0] [script.js]
Purge all versions
n prune
说明
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.
参数
- 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.
FAQ
What is the n command used for?
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.
How do I run a basic n example?
Run `n latest` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does latest do in n?
Install latest version.