From ddaf005c2be151bfa53d5f899c8d5760d5097119 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 2 Jul 2015 22:35:41 +0800 Subject: [PATCH] Fix calling npm on win32 --- script/cibuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/cibuild b/script/cibuild index 4abe614dd640..ef10977f33b2 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'))