diff --git a/responder/cli.py b/responder/cli.py index e6cac73c..1d4df745 100644 --- a/responder/cli.py +++ b/responder/cli.py @@ -29,7 +29,7 @@ """ import logging -import shutil +import os import subprocess import typing as t @@ -56,7 +56,7 @@ def cli() -> None: run: bool = args["run"] if build: - subprocess.check_call([shutil.which("npm.exe"), "run", "build"], cwd=target) # noqa: S603, S607 + subprocess.check_call(["npm", "run", "build"], cwd=target, env=os.environ) # noqa: S603, S607 if run: # Maximum request limit. Terminating afterward. Suitable for software testing.