]> khamidou — GitHub mirrors - electron.git/commitdiff
No need to install npm any more, the one in CI is new enough.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 28 Apr 2014 03:42:14 +0000 (11:42 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 28 Apr 2014 03:42:14 +0000 (11:42 +0800)
script/bootstrap.py

index 4bdc94bcb3a2c8d52804673a8a46d1858acfb3d9..ba24438ee588cfd9783233c3f573c7e11340915f 100755 (executable)
@@ -20,7 +20,6 @@ def main():
 
   args = parse_args()
   update_submodules()
-  update_npm()
   update_node_modules('.')
   update_atom_modules('atom/browser/default_app')
   bootstrap_brightray(args.url)
@@ -53,14 +52,6 @@ def bootstrap_brightray(url):
            url])
 
 
-def update_npm():
-  global NPM
-  if os.environ.get('CI') == '1':
-    execute([NPM, 'install', 'npm'])
-    NPM = os.path.join(SOURCE_ROOT, 'node_modules', '.bin', 'npm')
-    if sys.platform == 'win32':
-      NPM += '.cmd'
-
 def update_node_modules(dirname):
   with scoped_cwd(dirname):
     execute([NPM, 'install'])