Browse Source

Use npm.cmd on Windows to print version

Kevin Sawicki 9 years ago
parent
commit
10860e4ec5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      script/cibuild

+ 2 - 1
script/cibuild

@@ -98,7 +98,8 @@ def log_versions():
 
   sys.stderr.write('\nnpm --version\n')
   sys.stderr.flush()
-  subprocess.call(["npm", "--version"])
+  npm = 'npm.cmd' if PLATFORM == 'win32' else 'npm'
+  subprocess.call([npm, "--version"])
 
 
 def setup_nodenv():