tldr/pages.zh/common/n.md

25 lines
438 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# n
> 用于管理多个 node 版本的工具。
> 更多信息:<https://github.com/tj/n>.
- 安装给定版本的 node。如果版本已经安装它将被激活
`n {{版本}}`
- 显示已安装的版本并以交互方式激活其中一个版本:
`n`
- 删除一个版本:
`n rm {{版本}}`
- 使用给定版本执行文件:
`n use {{版本}} {{文件.js}}`
- 输出指定版本的二进制:
`n bin {{版本}}`