umijs / dumi

📖 Static Site Generator for component library development
https://d.umijs.org
MIT License
3.61k stars 1.18k forks source link

bug: 使用node16版本无法安装依赖 #2120

Closed Nuibia closed 6 months ago

Nuibia commented 6 months ago

Version

2.3.0

OS Version

macOs 14.1.2

Node.js Version

16.17.0

Browser Version

无需浏览器

Link to minimal reproduction

Steps to reproduce

  1. mkdir myapp && cd myapp
  2. npx create-dumi(使用node 16版本)
  3. 报错: zod-validation-error@2.1.0: The engine "node" is incompatible with this module. Expected version ">=18.0.0". Got "16.17.0"

What is expected?

正常安装!!!

What is actually happening?

image

Any additional comments? (optional)

No response

PeachScript commented 6 months ago

这个包不是 dumi 的直接依赖,dumi 无法处理,建议升级 Node.js,现在 LTS 都 20 了