Pass --no-audit to npm install (#426)
Fixes https://github.com/emscripten-core/emscripten/issues/10246
This commit is contained in:
2
emsdk.py
2
emsdk.py
@@ -1280,7 +1280,7 @@ def emscripten_npm_install(tool, directory):
|
|||||||
npm = os.path.join(node_path, 'npm' + ('.cmd' if WINDOWS else ''))
|
npm = os.path.join(node_path, 'npm' + ('.cmd' if WINDOWS else ''))
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env["PATH"] = node_path + os.pathsep + env["PATH"]
|
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
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user