Fix use of spawn on windows with cmd files

This commit is contained in:
Nick O'Leary
2024-04-11 14:40:29 +01:00
parent 9a3cb0b2b5
commit bd58431603
3 changed files with 17 additions and 10 deletions

View File

@@ -273,7 +273,7 @@ async function installModule(moduleDetails) {
let extraArgs = triggerPayload.args || [];
let args = ['install', ...extraArgs, installSpec]
log.trace(NPM_COMMAND + JSON.stringify(args));
return exec.run(NPM_COMMAND, args, { cwd: installDir },true)
return exec.run(NPM_COMMAND, args, { cwd: installDir, shell: true },true)
} else {
log.trace("skipping npm install");
}