Use npm.cmd on Windows to print version

This commit is contained in:
Kevin Sawicki 2016-04-07 10:14:47 -07:00
parent 687a512b11
commit 10860e4ec5

View file

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