Skip to content

Commit

Permalink
fix: adding prefix arg to npm subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
geeee committed Jan 28, 2024
1 parent 204af43 commit 42e605a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/node_runtime/src/node_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"))
Expand Down

0 comments on commit 42e605a

Please sign in to comment.