fix: adding prefix arg to npm subcommands

ge created

Change summary

crates/node_runtime/src/node_runtime.rs | 1 +
1 file changed, 1 insertion(+)

Detailed changes

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}"))