mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-02 22:30:36 +08:00
fix: macOS PATH detection + npm install error diagnosis (v0.4.1)
- Fix macOS Node.js/npm/openclaw detection by adding enhanced_path() with common install locations (/usr/local/bin, /opt/homebrew/bin, ~/.nvm, ~/.volta, etc.) - Add npm install error diagnosis: auto-detect git missing (exit 128), ENOENT, permission denied, network errors, cache corruption - Show macOS-specific hint when Node.js detection fails in setup page - Add shared error-diagnosis.js module used by both setup and services pages - Add troubleshooting section to README.md - Bump version to 0.4.1
This commit is contained in:
@@ -15,7 +15,9 @@ pub fn openclaw_command() -> std::process::Command {
|
||||
}
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
{
|
||||
std::process::Command::new("openclaw")
|
||||
let mut cmd = std::process::Command::new("openclaw");
|
||||
cmd.env("PATH", crate::commands::enhanced_path());
|
||||
cmd
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +33,8 @@ pub fn openclaw_command_async() -> tokio::process::Command {
|
||||
}
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
{
|
||||
tokio::process::Command::new("openclaw")
|
||||
let mut cmd = tokio::process::Command::new("openclaw");
|
||||
cmd.env("PATH", crate::commands::enhanced_path());
|
||||
cmd
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user