Skip to content

First launch fails with Unknown command: brew PROMPT_SUBST #193

Description

@chrismessina

Before submitting

  • I have searched the issues and pull requests for duplicates.
  • I am reporting a specific problem with BrewUI and have described how to reproduce it, or the circumstances of an intermittent failure.

What happened?

Image

After downloading, installing, and launching BrewUI for the first (and subsequent) times, the Installed screen fails to load. Instead of showing installed packages, it displays Homebrew’s command usage text and this error:

Error: Invalid usage: Unknown command: brew PROMPT_SUBST

The app shows “0 packages” and offers a Retry button, but the error remains.

Configuration and Upgrades show similar errors:

Image Image

Doctor provides a diagnosis:

Image

Expected behaviour

BrewUI should load the locally installed Homebrew packages.

If the installed Homebrew version or shell configuration is unsupported, BrewUI should detect that condition and show a clear, actionable compatibility message rather than exposing raw brew command output.

Steps to reproduce

  1. Download and install BrewUI via homebrew.
  2. Launch BrewUI for the first time.
  3. Open the default Installed screen.

App version and build

Version 0.4.1 (1070)

How was the app installed?

Homebrew cask

macOS version and build

26.6.2-arm64

Mac processor

Apple silicon

Homebrew configuration

HOMEBREW_VERSION: 7.0.1-11-gd2c0312
ORIGIN: https://github.com/Homebrew/brew
HEAD: d2c031219d1cbe8a2b5bda4dcd8d7d9226151b1e
Last commit: 2 hours ago
Branch: main
Core tap: N/A
Core cask tap: N/A
HOMEBREW_PREFIX: /opt/homebrew
Homebrew Ruby: 4.0.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/4.0.6_2/bin/ruby
CPU: 16-core 64-bit arm_palma
Clang: 21.0.0 build 2100
Git: 2.50.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 26.6.2-arm64
CLT: 27.0.0.0.1788430756
Xcode: 26.6
Metal Toolchain: 17.0 (17F109)
Rosetta 2: false

Logs, screenshots and crash reports

See above.

Additional context

No response

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions