Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

fix: adding prefix arg to npm subcommands

ge42e605a76699
diff --git a/crates/node_runtime/src/node_runtime.rs b/crates/node_runtime/src/node_runtime.rs
index ecabdeb7181..e40f83fae09 100644
--- a/crates/node_runtime/src/node_runtime.rs
+++ b/crates/node_runtime/src/node_runtime.rs
@@ -166,6 +166,7 @@ impl NodeRuntime for RealNodeRuntime {
if let Some(directory) = directory {
command.current_dir(directory);
+ command.args(["--prefix".into(), directory.to_path_buf()]);
}
command.output().await.map_err(|e| anyhow!("{e}"))