Skip to content

Commit

Permalink
Merge pull request #226 from FlowFuse/update-npm-shell
Browse files Browse the repository at this point in the history
Add shell option to npm spawn command
  • Loading branch information
Steve-Mcl committed Apr 12, 2024
2 parents 8c7a5b8 + 56ccb22 commit c545748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class Launcher {
const child = childProcess.spawn(
npmCommand,
['install', '--omit=dev', '--no-audit', '--no-update-notifier', '--no-fund'],
{ windowsHide: true, cwd: path.join(this.settings.rootDir, this.settings.userDir), env: npmEnv })
{ windowsHide: true, cwd: path.join(this.settings.rootDir, this.settings.userDir), env: npmEnv, shell: true })
child.stdout.on('data', (data) => {
this.logBuffer.add({ level: 'system', msg: '[npm] ' + data })
})
Expand Down

0 comments on commit c545748

Please sign in to comment.