Skip to content

postinstall: Permission denied on gbrain binary after bun install #388

@papiofficial

Description

@papiofficial

Bug Report

Summary

After running bun install in the gbrain repo, the postinstall script fails with Permission denied on the gbrain binary.

Steps to Reproduce

  1. Clone gbrain repo
  2. Run bun install
  3. Observe postinstall output

Error

/bin/bash: /Users/michael_claw/.bun/bin/gbrain: Permission denied
[gbrain] postinstall skipped. If installed via bun install -g github:...: run `gbrain doctor` and `gbrain apply-migrations --yes` manually.

Expected Behavior

Postinstall should either set the executable bit on the binary automatically, or not fail with a permission error.

Workaround

chmod +x ~/.bun/bin/gbrain

Environment

  • OS: macOS Darwin 25.3.0 arm64
  • Bun: 1.3.12
  • gbrain: v0.19.0

Filed by

Peter Abilla (papiofficial) via OpenClaw agent

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