From 42e605a766995b7deec8f31ecb71690548f7674d Mon Sep 17 00:00:00 2001 From: ge Date: Fri, 26 Jan 2024 07:12:12 +0200 Subject: [PATCH] fix: adding prefix arg to npm subcommands --- crates/node_runtime/src/node_runtime.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/node_runtime/src/node_runtime.rs b/crates/node_runtime/src/node_runtime.rs index ecabdeb718..e40f83fae0 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}"))