Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Run system npm directly (#18280)
Conrad Irwin5e62bbfd2917
diff --git a/crates/node_runtime/src/node_runtime.rs b/crates/node_runtime/src/node_runtime.rsindex 72c74ce7cf9..9507eb75364 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<Output> {- 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([