Pass --no-audit to npm install (#426)

Fixes https://github.com/emscripten-core/emscripten/issues/10246
This commit is contained in:
Sam Clegg
2020-01-21 09:22:15 -08:00
committed by GitHub
parent 6bfbe2a7da
commit 997b0a19ff

View File

@@ -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