From 63cb371ff8903863c6e62d15997e285d3421d9aa Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Tue, 27 Oct 2026 21:05:45 +0800 Subject: [PATCH] Update Hexo and Node.js version --- README.md | 6 ++++-- docs/ru/README.md | 6 ++++-- docs/zh-CN/README.md | 6 ++++-- package.json | 3 +++ 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index eb336f1..197b3df 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ [![NPM version](https://img.shields.io/npm/v/hexo-theme-next?color=red&logo=npm&style=for-the-badge)](https://www.npmjs.com/package/hexo-theme-next) [![NPM Downloads](https://img.shields.io/npm/dm/hexo-theme-next?logo=npm&style=for-the-badge)](https://www.npmjs.com/package/hexo-theme-next) -[![Required Hexo version](https://img.shields.io/badge/hexo-%3E=7.0.0-blue?style=for-the-badge&logo=hexo)](https://hexo.io) +[![Required Hexo version](https://img.shields.io/badge/hexo-%3E=8.0.0-blue?style=for-the-badge&logo=hexo)](https://hexo.io) [![License](https://img.shields.io/badge/license-%20AGPL-orange?style=for-the-badge&logo=gnu)](https://github.com/next-theme/hexo-theme-next/blob/master/LICENSE.md) [![Build Status](https://img.shields.io/github/actions/workflow/status/next-theme/hexo-theme-next/linter.yml?branch=master&label=test&logo=github&style=for-the-badge)](https://github.com/next-theme/hexo-theme-next/actions?query=workflow%3ALinter) [![Build Status](https://img.shields.io/github/actions/workflow/status/next-theme/hexo-theme-next/tester.yml?branch=master&logo=github&style=for-the-badge)](https://github.com/next-theme/hexo-theme-next/actions?query=workflow%3ATester) @@ -36,7 +36,9 @@ ## Installation -If you're using Hexo 5.0 or later, the simplest way to install is through npm: +Requires Hexo 8.0.0 or later and Node.js `^22.13.0 || >=24.0.0`. + +The simplest way to install is through npm: ```sh cd hexo-site diff --git a/docs/ru/README.md b/docs/ru/README.md index 9903fb9..8b4410d 100644 --- a/docs/ru/README.md +++ b/docs/ru/README.md @@ -19,7 +19,7 @@ [![NPM version](https://img.shields.io/npm/v/hexo-theme-next?color=red&logo=npm&style=for-the-badge)](https://www.npmjs.com/package/hexo-theme-next) [![NPM Downloads](https://img.shields.io/npm/dm/hexo-theme-next?logo=npm&style=for-the-badge)](https://www.npmjs.com/package/hexo-theme-next) -[![Required Hexo version](https://img.shields.io/badge/hexo-%3E=7.0.0-blue?style=for-the-badge&logo=hexo)](https://hexo.io) +[![Required Hexo version](https://img.shields.io/badge/hexo-%3E=8.0.0-blue?style=for-the-badge&logo=hexo)](https://hexo.io) [![License](https://img.shields.io/badge/license-%20AGPL-orange?style=for-the-badge&logo=gnu)](https://github.com/next-theme/hexo-theme-next/blob/master/LICENSE.md) [![Build Status](https://img.shields.io/github/actions/workflow/status/next-theme/hexo-theme-next/linter.yml?branch=master&label=test&logo=github&style=for-the-badge)](https://github.com/next-theme/hexo-theme-next/actions?query=workflow%3ALinter) [![Build Status](https://img.shields.io/github/actions/workflow/status/next-theme/hexo-theme-next/tester.yml?branch=master&logo=github&style=for-the-badge)](https://github.com/next-theme/hexo-theme-next/actions?query=workflow%3ATester) @@ -36,7 +36,9 @@ ## Установка -If you're using Hexo 5.0 or later, the simplest way to install is through npm: +Требуются Hexo 8.0.0 или новее и Node.js `^22.13.0 || >=24.0.0`. + +Самый простой способ установки — через npm: ```sh cd hexo-site diff --git a/docs/zh-CN/README.md b/docs/zh-CN/README.md index 6475a08..e8d6166 100644 --- a/docs/zh-CN/README.md +++ b/docs/zh-CN/README.md @@ -19,7 +19,7 @@ [![NPM version](https://img.shields.io/npm/v/hexo-theme-next?color=red&logo=npm&style=for-the-badge)](https://www.npmjs.com/package/hexo-theme-next) [![NPM Downloads](https://img.shields.io/npm/dm/hexo-theme-next?logo=npm&style=for-the-badge)](https://www.npmjs.com/package/hexo-theme-next) -[![Required Hexo version](https://img.shields.io/badge/hexo-%3E=7.0.0-blue?style=for-the-badge&logo=hexo)](https://hexo.io) +[![Required Hexo version](https://img.shields.io/badge/hexo-%3E=8.0.0-blue?style=for-the-badge&logo=hexo)](https://hexo.io) [![License](https://img.shields.io/badge/license-%20AGPL-orange?style=for-the-badge&logo=gnu)](https://github.com/next-theme/hexo-theme-next/blob/master/LICENSE.md) [![Build Status](https://img.shields.io/github/actions/workflow/status/next-theme/hexo-theme-next/linter.yml?branch=master&label=test&logo=github&style=for-the-badge)](https://github.com/next-theme/hexo-theme-next/actions?query=workflow%3ALinter) [![Build Status](https://img.shields.io/github/actions/workflow/status/next-theme/hexo-theme-next/tester.yml?branch=master&logo=github&style=for-the-badge)](https://github.com/next-theme/hexo-theme-next/actions?query=workflow%3ATester) @@ -36,7 +36,9 @@ ## 安装 -如果你在使用 Hexo 5.0 或更新版本,最简单的安装方式是通过 npm: +需要 Hexo 8.0.0 或更新版本,以及 Node.js `^22.13.0 || >=24.0.0`。 + +最简单的安装方式是通过 npm: ```sh cd hexo-site diff --git a/package.json b/package.json index dc6142e..f8735b4 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,9 @@ "url": "https://github.com/next-theme/hexo-theme-next/issues" }, "homepage": "https://theme-next.js.org", + "engines": { + "node": "^22.13.0 || >=24.0.0" + }, "devDependencies": { "@next-theme/eslint-config": "0.0.5", "c8": "12.0.0",