From 40342ca824384fb4a78c2f6b42b54ffeba5dbbd7 Mon Sep 17 00:00:00 2001 From: hicccc77 <98377878+hicccc77@users.noreply.github.com> Date: Mon, 30 Mar 2026 11:04:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(deps):=20=E4=BF=AE=E5=A4=8D=20npm=20install?= =?UTF-8?q?=20postinstall=20=E9=98=B6=E6=AE=B5=20ajv-keywords=20=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E6=80=A7=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 npm overrides 中的 ajv 版本范围从 >=6.14.0 改为 ^6.14.0, 确保 electron-builder 依赖链使用 ajv v6,避免在 Node.js v22 上 @develar/schema-utils 加载 ajv-keywords 时访问 formats 返回 undefined 的问题。 Fixes #588 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2ed4b45..cd81f75 100644 --- a/package.json +++ b/package.json @@ -194,6 +194,6 @@ "picomatch": "^4.0.4", "tar": "^7.5.13", "immutable": "^5.1.5", - "ajv": ">=6.14.0" + "ajv": "^6.14.0" } }