From 5e62bbfd29172c966c4a9e494d0063acdba639b9 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Tue, 24 Sep 2024 09:44:53 -0600 Subject: [PATCH] Run system npm directly (#18280) Release Notes: - N/A --- crates/node_runtime/src/node_runtime.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/node_runtime/src/node_runtime.rs b/crates/node_runtime/src/node_runtime.rs index 72c74ce7cf..9507eb7536 100644 --- a/crates/node_runtime/src/node_runtime.rs +++ b/crates/node_runtime/src/node_runtime.rs @@ -538,11 +538,10 @@ impl NodeRuntimeTrait for SystemNodeRuntime { subcommand: &str, args: &[&str], ) -> anyhow::Result { - let mut command = Command::new(self.node.clone()); + let mut command = Command::new(self.npm.clone()); command .env_clear() .env("PATH", std::env::var_os("PATH").unwrap_or_default()) - .arg(self.npm.clone()) .arg(subcommand) .args(["--cache".into(), self.scratch_dir.join("cache")]) .args([