From d255ab56a3e34e6349a879d71221d92d0327662f Mon Sep 17 00:00:00 2001 From: Maddipatla Chatan Date: Tue, 29 Sep 2026 18:06:21 +0530 Subject: [PATCH] Enhance npm command execution with env parameter Added environment variable support to npm commands. --- commands.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands.py b/commands.py index a258980555a..47e78d364ee 100644 --- a/commands.py +++ b/commands.py @@ -84,6 +84,7 @@ def install_js_deps(local, build=True): cwd=NODE_ROOT, stdout=sys.stdout, stderr=sys.stderr, + env=env, ) if local is not None: plotly_archive = os.path.join(local, "plotly.js.tgz") @@ -92,6 +93,7 @@ def install_js_deps(local, build=True): cwd=NODE_ROOT, stdout=sys.stdout, stderr=sys.stderr, + env=env, ) if build: check_call( @@ -99,6 +101,7 @@ def install_js_deps(local, build=True): cwd=NODE_ROOT, stdout=sys.stdout, stderr=sys.stderr, + env=env, ) os.utime(NODE_MODULES, None)