From 28b58e7976c2357d94ea57ea7543d17f0ba6028b Mon Sep 17 00:00:00 2001 From: sgellar <1216181067@qq.com> Date: Tue, 11 Nov 2025 12:20:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E5=BD=93=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20volta=20=E7=AE=A1=E7=90=86=20node=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E7=9A=84=E6=97=B6=E5=80=99=E5=AE=89=E8=A3=85=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/plugin-handler/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/core/plugin-handler/index.ts b/src/core/plugin-handler/index.ts index 16ee8c8..f0422a7 100644 --- a/src/core/plugin-handler/index.ts +++ b/src/core/plugin-handler/index.ts @@ -36,7 +36,14 @@ class AdapterHandler { fs.mkdirsSync(options.baseDir); fs.writeFileSync( `${options.baseDir}/package.json`, - '{"dependencies":{}}' + // '{"dependencies":{}}' + // fix 插件安装时node版本问题 + JSON.stringify({ + dependencies: {}, + volta: { + node: '16.19.1', + }, + }) ); } this.baseDir = options.baseDir;