Skip to content

Bee CLI binary not found for linux-arm64 on install #1

@chartmann1590

Description

@chartmann1590

Description:
When installing @beeai/cli on a linux-arm64 system (Raspberry Pi 5 running Debian/Ubuntu), the CLI fails to execute because the expected platform-specific binary is missing from the distributed package.

Steps to Reproduce:

  1. Run npm install -g @beeai/cli (or clone and npm link) on a linux-arm64 host.
  2. Attempt to run bee --version.

Expected Result:
The CLI should execute and display the version number.

Actual Result:
The command fails with the following error:
Bee CLI binary not found for linux-arm64 at /.../dist/platforms/linux-arm64/bee

Environment:

  • OS: Linux (Debian/Ubuntu)
  • Architecture: arm64 (aarch64)
  • Node version: v22.x
  • CLI version: 0.3.0

Suggested Fix / Workaround:
The current postinstall.js logic expects a pre-compiled binary in the dist/platforms directory that matches the host architecture. For arm64 users, the workaround is to manually compile using bun:

  1. Install bun.
  2. Run bun build ./sources/main.ts --compile --outfile ./dist/bee.
  3. Manually move the binary to the expected path: mkdir -p dist/platforms/linux-arm64 && cp dist/bee dist/platforms/linux-arm64/bee.

It would be great if the npm package included the linux-arm64 binary by default or offered a fallback build step during installation for unsupported architectures.

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