You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: postinstall fails without clear error when Linux system deps are missing #5133
When running pnpm install on Linux without libx11-dev, libxkbfile-dev, and libsecret-1-dev, the postinstall script fails with a cryptic node-gyp error from electron-rebuild:
Package 'x11', required by 'virtual:world', not found
Package 'xkbfile', required by 'virtual:world', not found
gyp: Call to '${PKG_CONFIG:-pkg-config} x11 xkbfile --libs' returned exit status 1
✖ Rebuild Failed
This gives developers no indication of what system packages need to be installed.
Proposed Fix
Add a pre-flight check at the top of scripts/postinstall.ts (Linux only) that verifies required system packages via dpkg -s and exits with a clear error message and the exact apt-get install command needed.
Also adds a Makefile for convenient dev workflow shortcuts (make deps, make install, make dev, make build).
changed the title [-]fix: postinstall fails without clear error when Linux system deps are missing[/-][+]bug: postinstall fails without clear error when Linux system deps are missing[/+]on Sep 21, 2026
Activity
[-]fix: postinstall fails without clear error when Linux system deps are missing[/-][+]bug: postinstall fails without clear error when Linux system deps are missing[/+]