Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Disable env clearing for npm subcommands (#42587)
Julia Ryan28adedf1fa56
diff --git a/crates/node_runtime/src/node_runtime.rs b/crates/node_runtime/src/node_runtime.rsindex c82fc178edf..6e705289a3f 100644--- a/crates/node_runtime/src/node_runtime.rs+++ b/crates/node_runtime/src/node_runtime.rs@@ -557,7 +557,6 @@ impl NodeRuntimeTrait for ManagedNodeRuntime {let node_ca_certs = env::var(NODE_CA_CERTS_ENV_VAR).unwrap_or_else(|_| String::new());let mut command = util::command::new_smol_command(node_binary);- command.env_clear();command.env("PATH", env_path);command.env(NODE_CA_CERTS_ENV_VAR, node_ca_certs);command.arg(npm_file).arg(subcommand);