Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

launch: add re-run hint to dependency error message (#15439)

Eva H2a94f03823d9
diff --git a/cmd/launch/openclaw.go b/cmd/launch/openclaw.go
index 19d4dcc45..c39603662 100644
--- a/cmd/launch/openclaw.go
+++ b/cmd/launch/openclaw.go
@@ -547,7 +547,7 @@ func ensureOpenclawInstalled() (string, error) {
if gitErr != nil {
missing = append(missing, "git: https://git-scm.com/")
}
- return "", fmt.Errorf("openclaw is not installed and required dependencies are missing\n\nInstall the following first:\n %s", strings.Join(missing, "\n "))
+ return "", fmt.Errorf("OpenClaw is not installed and required dependencies are missing\n\nInstall the following first:\n %s\n\nThen re-run:\n ollama launch openclaw", strings.Join(missing, "\n "))
}
ok, err := ConfirmPrompt("OpenClaw is not installed. Install with npm?")
diff --git a/cmd/launch/pi.go b/cmd/launch/pi.go
index d6d6b1dad..89c5327d1 100644
--- a/cmd/launch/pi.go
+++ b/cmd/launch/pi.go
@@ -53,7 +53,7 @@ func (p *Pi) Run(model string, args []string) error {
func ensureNpmInstalled() error {
if _, err := exec.LookPath("npm"); err != nil {
- return fmt.Errorf("npm (Node.js) is required to launch pi\n\nInstall it first:\n https://nodejs.org/")
+ return fmt.Errorf("npm (Node.js) is required to launch pi\n\nInstall it first:\n https://nodejs.org/\n\nThen re-run:\n ollama launch pi")
}
return nil
}
@@ -64,7 +64,7 @@ func ensurePiInstalled() (string, error) {
}
if _, err := exec.LookPath("npm"); err != nil {
- return "", fmt.Errorf("pi is not installed and required dependencies are missing\n\nInstall the following first:\n npm (Node.js): https://nodejs.org/")
+ return "", fmt.Errorf("pi is not installed and required dependencies are missing\n\nInstall the following first:\n npm (Node.js): https://nodejs.org/\n\nThen re-run:\n ollama launch pi")
}
ok, err := ConfirmPrompt("Pi is not installed. Install with npm?")