diff --git a/.changeset/cute-jobs-wave.md b/.changeset/cute-jobs-wave.md new file mode 100644 index 000000000000..4ecfe9221bd7 --- /dev/null +++ b/.changeset/cute-jobs-wave.md @@ -0,0 +1,7 @@ +--- +"@modern-js/app-tools": minor +--- + +feat: Drop support for Node.js 16 **BREAKING CHANGE: Node.js 16 is no longer supported. Please upgrade to Node.js 18 or higher.** + +feat: 不再支持 Node.js 16 **重大变更:Node.js 16 已不再支持,请升级至 Node.js 18 或更高版本**。 diff --git a/packages/solutions/app-tools/src/run/index.ts b/packages/solutions/app-tools/src/run/index.ts index d1b29f5dd797..84899a454e26 100644 --- a/packages/solutions/app-tools/src/run/index.ts +++ b/packages/solutions/app-tools/src/run/index.ts @@ -40,7 +40,7 @@ export async function run({ ${chalk.bgRed.white.bold(' ⚠️ CRITICAL NODE.JS VERSION ALERT ⚠️ ')} ${chalk.red.bold('Node.js 16 End-of-Life Notice:')} - ${chalk.red.bold.underline('June 30, 2025')} ${chalk.red('- Security updates and support will cease')} + ${chalk.red('- Security updates and support have ended for Node.js 16')} ${chalk.yellow('▸ Detected Runtime:')} ${chalk.yellow.bold(`Node.js v${nodeVersion}`)} ${chalk.green('▸ Required Minimum:')} ${chalk.green.bold('Node.js LTS (v18.x or higher)')} @@ -54,7 +54,7 @@ export async function run({ ${chalk.gray('└──')} ${chalk.yellow('Environment Verification')} ${chalk.bold('node -v && npm -v')} - ${chalk.hex('#AAAAAA').italic('[Security Advisory] Production environments must update before 2025-06-30')} + ${chalk.hex('#AAAAAA').italic('[Security Advisory] Node.js 16 is no longer supported. Upgrade immediately for security and compatibility.')} `); } const command = process.argv[2];