From 997b0a19ff6fdfe0be8b966e1fed05bf5ebf85e4 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 21 Jan 2020 09:22:15 -0800 Subject: [PATCH] Pass `--no-audit` to `npm install` (#426) Fixes https://github.com/emscripten-core/emscripten/issues/10246 --- emsdk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emsdk.py b/emsdk.py index a6ad35d..cb84bb3 100755 --- a/emsdk.py +++ b/emsdk.py @@ -1280,7 +1280,7 @@ def emscripten_npm_install(tool, directory): npm = os.path.join(node_path, 'npm' + ('.cmd' if WINDOWS else '')) env = os.environ.copy() env["PATH"] = node_path + os.pathsep + env["PATH"] - subprocess.check_call([npm, 'install', '--production'], cwd=directory, env=env) + subprocess.check_call([npm, 'install', '--production', '--no-audit'], cwd=directory, env=env) return True