-
Notifications
You must be signed in to change notification settings - Fork 5
Description
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:
- Run
npm install -g @beeai/cli(or clone andnpm link) on alinux-arm64host. - 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:
- Install
bun. - Run
bun build ./sources/main.ts --compile --outfile ./dist/bee. - 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.