From d51568910de7c694e631ae2b3ecde0e0ad92caf9 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Thu, 21 Apr 2016 16:32:18 +0200 Subject: [PATCH] fix npm call in postinstall --- build/npm/postinstall.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/npm/postinstall.js b/build/npm/postinstall.js index 207eee30393..76f1ff18155 100644 --- a/build/npm/postinstall.js +++ b/build/npm/postinstall.js @@ -4,6 +4,7 @@ *--------------------------------------------------------------------------------------------*/ const cp = require('child_process'); +const npm = process.platform === 'win32' ? 'npm.cmd' : 'npm'; const extensions = [ 'vscode-api-tests', @@ -15,7 +16,7 @@ const extensions = [ ]; extensions.forEach(extension => { - cp.spawnSync('npm', ['install'], { + cp.spawnSync(npm, ['install'], { cwd: `extensions/${ extension }`, stdio: 'inherit' });