From 1533c6837ae42ca3cd2a887cde1bf84b25ef0cbb Mon Sep 17 00:00:00 2001 From: LukeGus Date: Tue, 20 Oct 2026 16:25:23 -0500 Subject: [PATCH] fix: start npm through a shell in the windows sharp install --- scripts/install-windows-sharp.cjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install-windows-sharp.cjs b/scripts/install-windows-sharp.cjs index 1a6a1391e..272073281 100644 --- a/scripts/install-windows-sharp.cjs +++ b/scripts/install-windows-sharp.cjs @@ -21,6 +21,8 @@ const packages = [ "@img/sharp-win32-x64", ].map((name) => `${name}@${sharpPackage.optionalDependencies[name]}`); +// A .cmd file only starts through a shell on current Node. execFileSync("npm.cmd", ["install", "--force", "--no-save", ...packages], { stdio: "inherit", + shell: true, });