#13058·umi

[Bug] 不兼容node24

Author: cjdxhjjCreated Jun 5, 2025Updated Jul 13, 2026

What happens?

当我的node 24环境下执行npm install

Mini Showcase Repository(REQUIRED)

Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库

How To Reproduce

Steps to reproduce the behavior: 1. 2.

npm warn deprecated @formatjs/[email protected]: We have renamed the package to @formatjs/intl-numberformat

postinstall max setup

fatal - Error: Register plugin E:/crm-front-react/node_modules/@umijs/preset-umi/dist/features/esmi/esmi.js failed, since No such module: http_parser at Plugin.apply (E:\crm-front-react\node_modules@umijs\core\dist\service\plugin.js:76:15) at Service.initPlugin (E:\crm-front-react\node_modules@umijs\core\dist\service\service.js:463:33) at Service.run (E:\crm-front-react\node_modules@umijs\core\dist\service\service.js:259:18) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async Service.run2 (E:\crm-front-react\node_modules\\umi\dist\service\service.js:65:12) at async run (E:\crm-front-react\node_modules\\umi\dist\cli\cli.js:56:7) { [cause]: Error: No such module: http_parser at process.binding (node:internal/bootstrap/realm:162:11) at Object. (E:\crm-front-react\node_modules\http-deceiver\lib\deceiver.js:22:24) at Module._compile (node:internal/modules/cjs/loader:1734:14) at Object..js (node:internal/modules/cjs/loader:1899:10) at Module.load (node:internal/modules/cjs/loader:1469:32) at Module._load (node:internal/modules/cjs/loader:1286:12) at TracingChannel.traceSync (node:diagnostics_channel:322:14) at wrapModuleLoad (node:internal/modules/cjs/loader:235:24) at Module.require (node:internal/modules/cjs/loader:1491:12) at require (node:internal/modules/helpers:135:16) } fatal - A complete log of this run can be found in: fatal - E:\crm-front-react\node_modules.cache\logger\\umi.log fatal - Consider reporting a GitHub issue on https://github.com/umijs/umi/issues

Expected behavior 1. 2.

Context

  • Umi Version: 4.4.11
  • Node Version: 24.0.2
  • Platform: windows 10