mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
fix: start npm through a shell in the windows sharp install
This commit is contained in:
1 parent
a89ccc6b07
commit
1533c6837a
1 file changed
+2
@@ -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,
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user