1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 02:22:11 +02:00
tldr/pages.zh/common/n.md
2023-05-15 12:22:33 +08:00

438 B

n

用于管理多个 node 版本的工具。 更多信息:https://github.com/tj/n.

  • 安装给定版本的 node。如果版本已经安装,它将被激活:

n {{版本}}

  • 显示已安装的版本并以交互方式激活其中一个版本:

n

  • 删除一个版本:

n rm {{版本}}

  • 使用给定版本执行文件:

n use {{版本}} {{文件.js}}

  • 输出指定版本的二进制:

n bin {{版本}}