diff --git a/configure.py b/configure.py index 6efb98c2316f08..75b4ba264fb7e8 100755 --- a/configure.py +++ b/configure.py @@ -646,6 +646,12 @@ default=None, help='do not install the bundled npm (package manager)') +parser.add_argument('--without-corepack', + action='store_true', + dest='without_corepack', + default=None, + help='do not install the bundled Corepack') + # Dummy option for backwards compatibility parser.add_argument('--without-report', action='store_true', @@ -1159,6 +1165,7 @@ def configure_node(o): o['variables']['OS'] = 'android' o['variables']['node_prefix'] = options.prefix o['variables']['node_install_npm'] = b(not options.without_npm) + o['variables']['node_install_corepack'] = b(not options.without_corepack) o['variables']['debug_node'] = b(options.debug_node) o['default_configuration'] = 'Debug' if options.debug else 'Release' o['variables']['error_on_warn'] = b(options.error_on_warn) diff --git a/tools/install.py b/tools/install.py index 41cc1cbc60a948..eafcb19bf8b29f 100755 --- a/tools/install.py +++ b/tools/install.py @@ -163,6 +163,8 @@ def files(action): if 'true' == variables.get('node_install_npm'): npm_files(action) + + if 'true' == variables.get('node_install_corepack'): corepack_files(action) headers(action)