Skip to content

Issue while trying to install on HA OS on Raspberry Pi 5 #4

Description

@FDelporte

According to Claude:

The actual failure here:

[ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: better-sqlite3@11.10.0, esbuild@0.28.1, onnxruntime-node@1.21.0, protobufjs@7.6.4, sharp@0.34.5

Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.

Newer pnpm versions block native build scripts (postinstall, etc.) by default for security, things like better-sqlite3 need to compile native bindings, sharp needs its native image library, and pnpm refuses to run those scripts until you explicitly approve them. The add-on's Dockerfile doesn't do that approval step, so the install exits with code 1 and the whole build dies.

The fix needs to happen in the build script. The Dockerfile needs something like:

RUN cd mcp-server && pnpm install --frozen-lockfile 2>/dev/null || pnpm install --no-frozen-lockfile
RUN cd mcp-server && pnpm approve-builds --yes || pnpm rebuild

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