mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-17 04:45:33 -08:00
Harden the shared console install, launcher, Loop staging, spec state and prompts
AI Assisted
This commit is contained in:
1 parent
120c259d9c
commit
3ee96834bf
130 files changed
+5988
-1434
No files matched your search
@@ -414,13 +414,19 @@ fn npm_global_bin_uncached(windows: bool) -> Option<String> {
|
||||
}
|
||||
}
|
||||
}
|
||||
let child = std::process::Command::new("npm")
|
||||
let mut command = std::process::Command::new("npm");
|
||||
command
|
||||
.args(["config", "get", "prefix"])
|
||||
.stdin(std::process::Stdio::null())
|
||||
.stdout(std::process::Stdio::piped())
|
||||
.stderr(std::process::Stdio::null())
|
||||
.env("PATH", crate::node_check::resolved_path())
|
||||
.spawn();
|
||||
.env("PATH", crate::node_check::resolved_path());
|
||||
#[cfg(windows)]
|
||||
{
|
||||
use std::os::windows::process::CommandExt;
|
||||
command.creation_flags(0x0800_0000); // CREATE_NO_WINDOW
|
||||
}
|
||||
let child = command.spawn();
|
||||
let child = match child {
|
||||
Ok(child) => child,
|
||||
Err(_) => return None,
|
||||
|
||||
Reference in new issue
Block a user