Fix calling npm on win32

This commit is contained in:
Cheng Zhao 2015-07-02 22:35:41 +08:00
parent 558a612d37
commit ddaf005c2b

View file

@ -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'))