fix: adding prefix arg to npm subcommands
This commit is contained in:
1 parent
204af431e0
commit
42e605a766
1 file changed
+1
@@ -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}"))
|
||||
|
||||
Reference in new issue
Block a user