Fix calling npm on win32
This commit is contained in:
parent
558a612d37
commit
ddaf005c2b
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,8 @@ def main():
|
||||||
execute(['sh', '-e', '/etc/init.d/xvfb', 'start'])
|
execute(['sh', '-e', '/etc/init.d/xvfb', 'start'])
|
||||||
|
|
||||||
# CI's npm is not reliable.
|
# 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, 'out'))
|
||||||
rm_rf(os.path.join(SOURCE_ROOT, 'node_modules'))
|
rm_rf(os.path.join(SOURCE_ROOT, 'node_modules'))
|
||||||
|
|
Loading…
Reference in a new issue