Skip to content

issue_watcher.sh cannot find claude command in WSL environment #4

@stoutpanda

Description

@stoutpanda

Problem Description

The issue_watcher.sh script fails to find the claude command in a WSL environment, even though Claude Code is properly installed and functional.

Environment Details

  • Platform: WSL2 (Linux 6.6.87.1-microsoft-standard-WSL2)
  • Claude Code Version: 1.0.25 (Claude Code)
  • Shell: bash

Symptoms

  1. Running claude --version directly in the terminal works and returns 1.0.25 (Claude Code)

  2. The script's dependency check fails with:

  3. command -v claude returns nothing (empty output)

  4. which claude returns nothing

Investigation Results

The claude executable is actually installed at: /home/ubuntu/.claude/local/claude

However, this path is not included in the system PATH, so the script's command -v claude check fails.

Current PATH includes many directories but not /home/ubuntu/.claude/local/:

  • /home/ubuntu/.local/bin
  • /home/ubuntu/.nvm/versions/node/v24.2.0/bin
  • /usr/local/bin
  • /usr/bin
  • Various other system and user paths
  • But notably missing: /home/ubuntu/.claude/local/

Expected Behavior

The script should be able to find and use the claude command when Claude Code is properly installed, regardless of the installation method or environment.

Actual Behavior

The script exits with an error stating that claude CLI is not available even though the command works when invoked directly from the shell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions