From 0a2c97ccaa438617b9ab3f0d249bc12786770d39 Mon Sep 17 00:00:00 2001 From: jlaramie Date: Sun, 1 Jul 2018 16:45:24 -0400 Subject: [PATCH] Fix for calling 'npm' using child process spawn. See https://github.com/nodejs/node/issues/3675 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 437d9b2..3390414 100644 --- a/index.js +++ b/index.js @@ -112,7 +112,7 @@ class ServerlessFullstackPlugin { performClientGeneration(command, args, clientSrcPath, resolve, reject) { this.serverless.cli.log(`Generating client...`); - const proc = spawn(command, args, {cwd: clientSrcPath, env: process.env}); + const proc = spawn(command, args, {cwd: clientSrcPath, env: process.env, shell: true}); proc.stdout.on('data', (data) => { const printableData = data ? `${data}`.trim() : '';