From 22c8b55cb9cca9852754629ee55effa7452a4f51 Mon Sep 17 00:00:00 2001 From: Paul Betts Date: Tue, 20 Aug 2013 16:37:02 +0200 Subject: [PATCH] Fix invocation of npm on non-Cygwin --- script/bootstrap.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/bootstrap.py b/script/bootstrap.py index fb85e63b750a..f6f9faf7fa47 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -57,8 +57,13 @@ def bootstrap_brightray(url): def update_apm(): + ## NB: Without this, subprocess incorrectly searches for npm.exe + npm_cmd = 'npm' + if sys.platform == 'win32': + npm_cmd += '.cmd' + with scoped_cwd(os.path.join('vendor', 'apm')): - subprocess.check_call(['npm', 'install', '.']) + subprocess.check_call([npm_cmd, 'install', '.']) def update_node_modules():