Skip to content

bug: postinstall fails without clear error when Linux system deps are missing #5133

Open

Description

@rkristelijn

Problem

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).

Environment

  • Linux Mint 22.3 (Zena)
  • Node v24.15.0
  • pnpm 10.33.4

Activity

  1. 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
  2. added
    🐧 platform/linux
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🐧 platform/linux

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions