parent
21be70f278
commit
5e62bbfd29
1 changed files with 1 additions and 2 deletions
|
@ -538,11 +538,10 @@ impl NodeRuntimeTrait for SystemNodeRuntime {
|
||||||
subcommand: &str,
|
subcommand: &str,
|
||||||
args: &[&str],
|
args: &[&str],
|
||||||
) -> anyhow::Result<Output> {
|
) -> anyhow::Result<Output> {
|
||||||
let mut command = Command::new(self.node.clone());
|
let mut command = Command::new(self.npm.clone());
|
||||||
command
|
command
|
||||||
.env_clear()
|
.env_clear()
|
||||||
.env("PATH", std::env::var_os("PATH").unwrap_or_default())
|
.env("PATH", std::env::var_os("PATH").unwrap_or_default())
|
||||||
.arg(self.npm.clone())
|
|
||||||
.arg(subcommand)
|
.arg(subcommand)
|
||||||
.args(["--cache".into(), self.scratch_dir.join("cache")])
|
.args(["--cache".into(), self.scratch_dir.join("cache")])
|
||||||
.args([
|
.args([
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue