diff --git a/src/util/spawn.js b/src/util/spawn.js index 99527b1..655b9d9 100644 --- a/src/util/spawn.js +++ b/src/util/spawn.js @@ -4,7 +4,7 @@ const childProcess = require('child_process'); * Spawn a child process with a callback when the process exits */ module.exports = function spawn(task, args, onClose) { - const child = childProcess.spawn('npm', args, { + const child = childProcess.spawn(process.platform === 'win32' ? 'npm.cmd' : 'npm', args, { stdio: 'inherit' });