From 5ad4ab9aa886b05793cea1fd701cc923d60e526d Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Sun, 31 Aug 2025 12:18:11 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4packageManager?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=B9=B6=E6=94=BE=E5=AE=BDpnpm=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除显式的packageManager字段,改为在engines中设置更宽松的pnpm版本范围(>=9 <=10.12),提高兼容性 --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index a554080..79d09ca 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,6 @@ "type": "module", "version": "3.12.1", "unibest-version": "3.12.1", - "packageManager": "pnpm@10.10.0", "description": "unibest - 最好的 uniapp 开发模板", "generate-time": "用户创建项目时生成", "author": { @@ -22,7 +21,7 @@ }, "engines": { "node": ">=22", - "pnpm": "10.10.0" + "pnpm": ">=9 <=10.12" }, "scripts": { "preinstall": "npx only-allow pnpm",