Node.js 版本
🌐 Node.js Releases
Node.js 的主要版本进入 Current 版本状态为期六个月,这为库作者提供了时间来添加对其的支持。 历史上(直到 Node.js 26),奇数版本(9、11 等)在六个月后不再受支持,而偶数版本(10、12 等)则进入 Active LTS 状态,并准备好供一般使用。 从 Node.js 27 开始,发布周期将改为每年一次,每个主要版本将在其六个月的 Current 阶段(以及额外六个月的 Alpha 阶段)后进入 LTS 状态。 LTS 版本状态为“长期支持”,通常保证关键错误在总计 30 个月内得到修复。 生产环境应用应仅使用 Active LTS 或 Maintenance LTS 版本。
🌐 Major Node.js versions enter Current release status for six months, which gives library authors time to add support for them. Historically (up to Node.js 26), odd-numbered releases (9, 11, etc.) become unsupported after six months, and even-numbered releases (10, 12, etc.) move to Active LTS status and are ready for general use. Starting with Node.js 27, the release cycle will be annual and every major version will move to LTS status after its six-month Current phase (and six additional months of Alpha phase). 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
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 | 代号 | 首次发布 | 上次更新 | 状态 | |
|---|---|---|---|---|---|
| v26 | - | Current | |||
| v25 | - | EOL | |||
| v24 | Krypton | LTS | |||
| v23 | - | EOL | |||
| v22 | Jod | LTS | |||
| v21 | - | EOL | |||
| v20 | Iron | EOL | |||
| v19 | - | EOL | |||
| v18 | Hydrogen | EOL | |||
| v17 | - | EOL | |||
| v16 | Gallium | EOL | |||
| v15 | - | EOL | |||
| v14 | Fermium | EOL | |||
| v13 | - | EOL | |||
| v12 | Erbium | EOL | |||
| v11 | - | EOL | |||
| v10 | Dubnium | EOL | |||
| v9 | - | EOL | |||
| v8 | Carbon | EOL | |||
| v7 | - | EOL | |||
| v6 | Boron | EOL | |||
| v5 | - | EOL | |||
| v4 | Argon | EOL | |||
| v0 | - | 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 发行版上,而不仅仅是特定的子集。它不能依赖特定发行版的包管理器,如
apt或dnf。
- 自由和开源: 必须免费使用并且开源,不能作为商业产品出售,也不能是付费服务。