From: Paul Betts Date: Tue, 20 Aug 2013 14:37:02 +0000 (+0200) Subject: Fix invocation of npm on non-Cygwin X-Git-Tag: v0.4.1~16^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=22c8b55cb9cca9852754629ee55effa7452a4f51;p=electron.git Fix invocation of npm on non-Cygwin --- diff --git a/script/bootstrap.py b/script/bootstrap.py index fb85e63b..f6f9faf7 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():