Skip to content

docs: Troubleshooting section tells users to check PATH but doesn't show how to fix it #1458

Closed

Description

@johnazariah

Problem

After running npm install -g @bradygaster/squad-cli, the squad command is not found on Windows when the npm global prefix is set to a custom directory (e.g. ~/.npm-global). The current troubleshooting section in the installation docs tells users to check their PATH but never explains how to actually fix it.

Steps to reproduce

  1. Have a custom npm prefix (e.g. npm config set prefix ~/.npm-global)
  2. Run npm install -g @bradygaster/squad-cli — installs successfully
  3. Run squad — squad: The term 'squad' is not recognized

Expected

The troubleshooting section should provide the actual fix commands for each platform (adding npm prefix -g to PATH), not just diagnostic commands.

Suggested fix

Update the squad: command not found troubleshooting section to include:

  • The npm prefix -g command to find the actual global bin directory
  • Platform-specific instructions for adding it to PATH (bash/zsh profile for macOS/Linux, [Environment]::SetEnvironmentVariable for Windows)

Activity

  1. omercangumus commented on Jul 16, 2026

    @omercangumus
    Contributor

    taking this — the installation page's "command not found" entry says Fix: but only shows diagnostics (and the Windows line is cmd syntax, findstr %PATH%, which won't run in PowerShell). Will add npm prefix -g plus the actual per-platform PATH fix, verified live on a Windows machine with a custom prefix.

  2. added 2 commits that reference this issue on Jul 16, 2026
    8255dda
    ee6ebc4
  3. tamirdresher commented on Jul 17, 2026

    @tamirdresher
    Collaborator

    Quick clarifier for anyone landing on this issue: #1488 was closed as a duplicate of this one. The active implementation is #1459 by @johnazariah, which has closing linkage (Fixes #1458) in its PR body and just picked up a fresh APPROVE from me. Merging that PR will close this issue automatically.

  4. added a commit that references this issue on Jul 17, 2026
    ce16bfc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions