WSL npm install wont work "agent coder not found" #345

Closed
opened 2026-02-16 17:26:22 -05:00 by yindo · 3 comments
Owner

Originally created by @Sniphs98 on GitHub (Jun 27, 2025).

I installed it in my WSL using npm, but when I run opencode in the console, I get the error message:
"agent coder not found".

here is the full console output:

➜  genshin-code-scraper git:(main) opencode                   
2025/06/27 20:09:36 WARN Ripgrep (rg) not found in $PATH. Some features might be limited or slower.
2025/06/27 20:09:36 WARN FZF not found in $PATH. Some features might be limited or slower.
Error: agent coder not found
Usage:
  opencode [flags]

Examples:

  # Run in interactive mode
  opencode

  # Run with debug logging
  opencode -d

  # Run with debug logging in a specific directory
  opencode -d -c /path/to/project

  # Print version
  opencode -v

  # Run a single non-interactive prompt
  opencode -p "Explain the use of context in Go"

  # Run a single non-interactive prompt with JSON output format
  opencode -p "Explain the use of context in Go" -f json
  

Flags:
  -c, --cwd string             Current working directory
  -d, --debug                  Debug
  -h, --help                   Help
  -f, --output-format string   Output format for non-interactive mode (text, json) (default "text")
  -p, --prompt string          Prompt to run in non-interactive mode
  -q, --quiet                  Hide spinner in non-interactive mode
  -v, --version                Version
Originally created by @Sniphs98 on GitHub (Jun 27, 2025). I installed it in my WSL using npm, but when I run opencode in the console, I get the error message: "agent coder not found". here is the full console output: ``` ➜ genshin-code-scraper git:(main) opencode 2025/06/27 20:09:36 WARN Ripgrep (rg) not found in $PATH. Some features might be limited or slower. 2025/06/27 20:09:36 WARN FZF not found in $PATH. Some features might be limited or slower. Error: agent coder not found Usage: opencode [flags] Examples: # Run in interactive mode opencode # Run with debug logging opencode -d # Run with debug logging in a specific directory opencode -d -c /path/to/project # Print version opencode -v # Run a single non-interactive prompt opencode -p "Explain the use of context in Go" # Run a single non-interactive prompt with JSON output format opencode -p "Explain the use of context in Go" -f json Flags: -c, --cwd string Current working directory -d, --debug Debug -h, --help Help -f, --output-format string Output format for non-interactive mode (text, json) (default "text") -p, --prompt string Prompt to run in non-interactive mode -q, --quiet Hide spinner in non-interactive mode -v, --version Version ```
yindo closed this issue 2026-02-16 17:26:22 -05:00
Author
Owner

@rekram1-node commented on GitHub (Jun 27, 2025):

@Sniphs98 You have installed the wrong opencode (this is the old one), IK it is confusing

@rekram1-node commented on GitHub (Jun 27, 2025): @Sniphs98 You have installed the wrong opencode (this is the old one), IK it is confusing
Author
Owner

@adamdotdevin commented on GitHub (Jun 27, 2025):

yeah, curious how you installed (and how you found the link to install). correct installation instructions can be found at opencode.ai

@adamdotdevin commented on GitHub (Jun 27, 2025): yeah, curious how you installed (and how you found the link to install). correct installation instructions can be found at opencode.ai
Author
Owner

@Sniphs98 commented on GitHub (Jun 28, 2025):

Thank you for the clarification and help! It's all resolved now.

@Sniphs98 commented on GitHub (Jun 28, 2025): Thank you for the clarification and help! It's all resolved now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#345