-
Notifications
You must be signed in to change notification settings - Fork 519
Open
Description
bun install -g @tobilu/qmd prints "Blocked 1 postinstall" and then crashes:
Error: Could not locate the bindings file.
bun blocks better-sqlite3's postinstall (node-gyp compile) by default. the .node binary never gets built. fix is bun pm trust better-sqlite3 -g but nothing in the error points you there.
npm registry installs work fine since npm runs postinstall by default.
| install method | works? |
|---|---|
| npm registry | ✅ |
| bun registry | ❌ needs bun pm trust better-sqlite3 |
| npm git | ❌ fixed by #197 |
| bun git | ❌ fixed by #197 |
one fix is adding "trustedDependencies": ["better-sqlite3"] to package.json so bun auto-runs the postinstall. another option is having the wrapper prefer bun when available (bun:sqlite, no native addon needed) but that's blocked by #161.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels