From: Cheng Zhao Date: Thu, 2 Jul 2015 14:35:41 +0000 (+0800) Subject: Fix calling npm on win32 X-Git-Tag: v0.29.0~2^2~11 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ddaf005c2be151bfa53d5f899c8d5760d5097119;p=electron.git Fix calling npm on win32 --- diff --git a/script/cibuild b/script/cibuild index 4abe614d..ef10977f 100755 --- a/script/cibuild +++ b/script/cibuild @@ -46,7 +46,8 @@ def main(): execute(['sh', '-e', '/etc/init.d/xvfb', 'start']) # CI's npm is not reliable. - execute(['npm', 'install', 'npm']) + npm = 'npm.cmd' if sys.platform == 'win32' else 'npm' + execute([npm, 'install', 'npm']) rm_rf(os.path.join(SOURCE_ROOT, 'out')) rm_rf(os.path.join(SOURCE_ROOT, 'node_modules'))