diff --git a/crates/node_runtime/src/node_runtime.rs b/crates/node_runtime/src/node_runtime.rs index 6e705289a3fd9e814574198004b8213e5147b7ca..1faf22dc9844f648fec53654ef3bde500cec32e2 100644 --- a/crates/node_runtime/src/node_runtime.rs +++ b/crates/node_runtime/src/node_runtime.rs @@ -414,7 +414,6 @@ impl ManagedNodeRuntime { let valid = if fs::metadata(&node_binary).await.is_ok() { let result = util::command::new_smol_command(&node_binary) - .env_clear() .env(NODE_CA_CERTS_ENV_VAR, node_ca_certs) .arg(npm_file) .arg("--version") @@ -701,7 +700,6 @@ impl NodeRuntimeTrait for SystemNodeRuntime { let mut command = util::command::new_smol_command(self.npm.clone()); let path = path_with_node_binary_prepended(&self.node).unwrap_or_default(); command - .env_clear() .env("PATH", path) .env(NODE_CA_CERTS_ENV_VAR, node_ca_certs) .arg(subcommand)