跳到内容

Node.js 版本

🌐 Node.js Releases

通过我们的OpenJS 生态系统可持续发展计划合作伙伴,你可以获得对维护 LTS 阶段之后版本的商业支持。

主要的 Node.js 版本会进入 Current 发布状态持续六个月,这为库的作者提供了时间来添加对这些版本的支持。六个月后,奇数版本(9、11 等)将不再受支持,而偶数版本(10、12 等)将进入 Active LTS 状态,并准备好供一般使用。LTS 发布状态意为“长期支持”,通常保证关键漏洞在总共 30 个月内得到修复。生产环境的应用应仅使用 Active LTSMaintenance LTS 版本。

🌐 Major Node.js versions enter Current release status for six months, which gives library authors time to add support for them. After six months, odd-numbered releases (9, 11, etc.) become unsupported, and even-numbered releases (10, 12, etc.) move to Active LTS status and are ready for general use. LTS release status is "long-term support", which typically guarantees that critical bugs will be fixed for a total of 30 months. Production applications should only use Active LTS or Maintenance LTS releases.

发布计划

🌐 Release Schedule

Releases

Node.js 发布计划的完整详情可在 GitHub 查阅。

🌐 Full details regarding the Node.js release schedule are available on GitHub.

寻找某个版本分支的最新发布?

🌐 Looking for the latest release of a version branch?

Node.js代号首次发布上次更新状态
v25-Current
v24KryptonActive LTS
v23-End-of-life (EoL)
v22JodMaintenance LTS
v21-End-of-life (EoL)
v20IronMaintenance LTS
v19-End-of-life (EoL)
v18HydrogenEnd-of-life (EoL)
v17-End-of-life (EoL)
v16GalliumEnd-of-life (EoL)
v15-End-of-life (EoL)
v14FermiumEnd-of-life (EoL)
v13-End-of-life (EoL)
v12ErbiumEnd-of-life (EoL)
v11-End-of-life (EoL)
v10DubniumEnd-of-life (EoL)
v9-End-of-life (EoL)
v8CarbonEnd-of-life (EoL)
v7-End-of-life (EoL)
v6BoronEnd-of-life (EoL)
v5-End-of-life (EoL)
v4ArgonEnd-of-life (EoL)
v0-End-of-life (EoL)

官方与社区安装方法

🌐 Official vs. Community Installation Methods

Node.js 网站提供了几种非交互式安装方法,包括命令行接口(CLI)、操作系统(OS)包管理器(如 brew)以及 Node.js 版本管理器(如 nvm)。

🌐 The Node.js website provides several non-interactive installation methods, including command-line interfaces (CLIs), operating system (OS) package managers (e.g., brew), and Node.js version managers (e.g., nvm).

为了突出和推广社区贡献,Node.js 项目推出了经过修订的下载页面,将安装方式分为“官方”或“社区”。这为用户提供了更多的灵活性和选择。为了确保清晰,我们已经为每个类别定义了标准。

🌐 To highlight and promote community contributions, the Node.js project introduced a revised Downloads page categorizing installation methods as either “Official” or “Community.” This provides users with increased flexibility and choice. To ensure clarity, we’ve defined criteria for each category.

官方安装方法

🌐 Official Installation Methods

标记为“官方”的安装方法必须满足以下要求:

🌐 Installation methods designated as “Official” must meet the following requirements:

要求(官方安装方法)
新的 Node.js 版本必须在官方发布的同时可用。
项目维护者必须与 Node.js 项目保持紧密联系,包括直接的沟通渠道。
安装方法必须下载由 Node.js 项目打包的官方二进制文件。
当有预构建二进制文件可用时,安装方法不得从源代码构建,也不得修改官方二进制文件。

社区安装方法

🌐 Community Installation Methods

自助下载页面(位于 /download)上包含的社区安装方法也必须遵守一套最低标准:

🌐 Community installation methods included on the self-service download page (located at /download) must also adhere to a minimum set of criteria:

  • 版本支持: 必须支持所有当前支持的、未达到生命周期终止(EOL)的 Node.js 版本。
  • 操作系统兼容性: 必须能在至少一个官方支持的操作系统(OS)上运行。
  • 广泛的操作系统支持: 不能仅限于某些操作系统发行版或版本。
    • 例如,声称与“Windows”兼容的安装方法必须能够在“Windows 10”、“Windows 11”及其所有版本(包括服务器版本)上运行。
    • 同样,声称与“Linux”兼容的安装方法必须能够安装在所有主要的 Linux 发行版上,而不仅仅是特定的子集。它不能依赖特定发行版的包管理器,如 aptdnf
  • 自由和开源: 必须免费使用并且开源,不能作为商业产品出售,也不能是付费服务。