Skip to content

Commit

Permalink
Always pass 'yes' to npm install calls on sync. (#12669)
Browse files Browse the repository at this point in the history
* Always pass 'yes' to npm install calls on sync.

* Remove unused import.
  • Loading branch information
goodov authored Apr 5, 2022
1 parent 3be2953 commit 81861b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions script/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import argparse
import os
import subprocess
import sys

from lib.config import PLATFORM, SOURCE_ROOT, \
Expand Down Expand Up @@ -63,7 +62,7 @@ def update_node_modules(dirname, env=None):
if env is None:
env = os.environ.copy()
with scoped_cwd(dirname):
args = [NPM, 'install', '--no-save']
args = [NPM, 'install', '--no-save', '--yes']
if is_verbose_mode():
args += ['--verbose']
execute_stdout(args, env)
Expand Down
2 changes: 1 addition & 1 deletion script/web_discovery_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def main():
if args.verbose:
enable_verbose_mode()
if args.install:
execute_stdout([NPM, 'install', '--no-save'], env=env)
execute_stdout([NPM, 'install', '--no-save', '--yes'], env=env)
if args.build:
env["OUTPUT_PATH"] = args.output_path
execute_stdout([NPM, 'run', 'build-module'], env=env)
Expand Down

0 comments on commit 81861b0

Please sign in to comment.