From 16ee884464be3bdd99b496bb6e9f4118324abfd8 Mon Sep 17 00:00:00 2001 From: juj Date: Tue, 27 Apr 2021 00:38:00 +0300 Subject: [PATCH] Fix issues with npm install of google-closure-compiler installing all dev packages as well. (#793) --- emsdk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emsdk.py b/emsdk.py index 48ac2a9..96a47e3 100644 --- a/emsdk.py +++ b/emsdk.py @@ -1411,7 +1411,7 @@ def emscripten_npm_install(tool, directory): print('Running post-install step: npm install', closure_compiler_native) try: subprocess.check_output( - [npm, 'install', closure_compiler_native], + [npm, 'install', '--production', '--no-optional', closure_compiler_native], cwd=directory, stderr=subprocess.STDOUT, env=env, universal_newlines=True) except subprocess.CalledProcessError as e: