mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 11:29:25 +00:00
fix: adding prefix arg to npm subcommands
This commit is contained in:
parent
204af431e0
commit
42e605a766
1 changed files with 1 additions and 0 deletions
|
@ -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}"))
|
||||
|
|
Loading…
Reference in a new issue