Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions docs/src/content/docs/get-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,34 @@ export default defineConfig({

### `squad: command not found`

Your npm global bin isn't in your PATH. Fix:
Your npm global bin isn't in your PATH. This usually happens with a custom npm prefix (e.g. `npm config set prefix ~/.npm-global`). Diagnose:

```bash
# Check if installed
npm list -g @bradygaster/squad-cli

# If installed but not found, check PATH:
echo $PATH | grep npm # macOS/Linux
echo %PATH% | findstr npm # Windows
# Find where npm puts global commands
npm prefix -g
```

On macOS/Linux, `squad` is installed to `$(npm prefix -g)/bin`. On Windows, it's installed to the prefix directory itself (no `bin` subdirectory). If that directory isn't in your PATH, add it:

**macOS/Linux** — add the bin directory to your shell profile:

```bash
echo 'export PATH="$(npm prefix -g)/bin:$PATH"' >> ~/.zshrc # or ~/.bashrc
source ~/.zshrc
```

**Windows (PowerShell)** — append the prefix to your user PATH:

```powershell
$npmPrefix = npm prefix -g
[Environment]::SetEnvironmentVariable('Path', "$([Environment]::GetEnvironmentVariable('Path', 'User'));$npmPrefix", 'User')
```

Then open a new terminal and verify with `squad --version`.

### `Cannot find .squad/ directory`

Run `squad init` in your project root, or `squad init --global` for a personal squad.
Expand Down