mirror of
https://github.com/electron/electron.git
synced 2026-01-23 06:18:17 -05:00
Fix calling npm on win32
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user