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 and npm link) on a linux-arm64 host.
- 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.
Description:
When installing
@beeai/clion alinux-arm64system (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:
npm install -g @beeai/cli(or clone andnpm link) on alinux-arm64host.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/beeEnvironment:
arm64(aarch64)Suggested Fix / Workaround:
The current
postinstall.jslogic expects a pre-compiled binary in thedist/platformsdirectory that matches the host architecture. Forarm64users, the workaround is to manually compile usingbun:bun.bun build ./sources/main.ts --compile --outfile ./dist/bee.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-arm64binary by default or offered a fallback build step during installation for unsupported architectures.