fix: start npm through a shell in the windows sharp install

This commit is contained in:
LukeGus committed 2026-10-20 16:56:04 -05:00
1 parent a89ccc6b07
commit 1533c6837a
1 file changed
+2
+2
View File
@@ -21,6 +21,8 @@ const packages = [
"@img/sharp-win32-x64", "@img/sharp-win32-x64",
].map((name) => `${name}@${sharpPackage.optionalDependencies[name]}`); ].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], { execFileSync("npm.cmd", ["install", "--force", "--no-save", ...packages], {
stdio: "inherit", stdio: "inherit",
shell: true,
}); });