Skip to content

Linux AppImage 0.43.0: bundled npm missing dependencies, community plugin install fails (exit 7) #3584

Closed

Description

@Dave4272-Office

Summary

On bb desktop 0.43.0 (Linux AppImage), installing any BB Community git plugin that needs production dependencies fails immediately with npm install failed (exit 7). The bundled npm 11.16.0 crashes on startup because its own runtime dependency proc-log is missing from the AppImage bundle. I expected the installer to run the shipped npm CLI and install the plugin's dependencies.

Versions and environment

  • bb 0.43.0 (desktop app), installed as bb-0.43.0-x86_64.AppImage
  • Release tested: desktop-v0.43.0 (607df4039fb3b3941771e3d0a1f44f1a45054708)
  • OS: CachyOS Linux (Arch rolling)
  • Kernel: 7.2.3-1-cachyos
  • Bundled runtime: Electron Node.js v24.15.0 (from the crash stack trace)
  • Community marketplace: reachable and loaded (176 entries)
  • Provider: not involved (failure happens during plugin install, before any agent runs)
  • Data dir: default ~/.bb

Steps to reproduce

Minimal CLI repro (no UI)

After launching the bb AppImage once (so it is mounted under /tmp/.mount_bb-*):

MOUNT="$(find /tmp -maxdepth 1 -name '.mount_bb-*' -type d | head -1)"
node "$MOUNT/resources/app.asar.unpacked/node_modules/npm/bin/npm-cli.js" --version

UI repro

  1. Open Plugins → BB Community.
  2. Select a git-based plugin with production dependencies, e.g. Bots Sidebar (bots-sidebar) or Usage (usage).
  3. Click Install and confirm the full-trust prompt.

Did not reproduce with: a working system npm on PATH — the installer uses bb's bundled npm, not the system one. Git/network access works (git ls-remote resolves plugin repos and tags).

Expected vs actual

Expected: bundled npm starts and installs the plugin's declared production dependencies; the plugin appears as installed.

Actual: install fails before dependencies are installed. UI toast:

Plugin installation failed
Bots Sidebar — npm install failed (exit 7): rCJSLoading
(node:internal/modules/cjs/loader:1080:10)
  at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1101:12)
  at Module._load (node:internal/modules/cjs/loader:1269:25)
  at c._load (node:electron/js2c/node_init:2:18060)
  at wrapModuleLoad (node:internal/modules/cjs/loader:262:19)
  at Module.require (node:internal/modules/cjs/loader:1583:12)
  at require (node:internal/modules/helpers:153:16)
  at Object.<anonymous> (/tmp/.mount_bb-0.4ICCMBh/resources/app.asar.unpacked/node_modules/npm/lib/cli/exit-handler.js:1:31)
  ...
Node.js v24.15.0

CLI repro (same root cause):

Error: Cannot find module 'proc-log'
Require stack:
- .../resources/app.asar.unpacked/node_modules/npm/lib/cli/exit-handler.js
- .../resources/app.asar.unpacked/node_modules/npm/lib/cli/entry.js
- .../resources/app.asar.unpacked/node_modules/npm/lib/cli.js
- .../resources/app.asar.unpacked/node_modules/npm/bin/npm-cli.js

Plugin install failure in BB Community UI

Evidence

What you ruled out

Suggested priority and effort

High — blocks every git-based BB Community plugin install on Linux AppImage 0.43.0; no user workaround; no data loss, but the Community catalog is unusable for git plugins. Effort likely Low–Medium (packaging / release smoke-test gap).


AGENT GENERATED

Investigation thread: thr_sq66xycivu

Activity

  1. added theissue type on Sep 12, 2026
  2. added
    desktop
    plugins
    on Sep 12, 2026
  3. Dave4272-Office commented on Sep 12, 2026

    @Dave4272-Office
    Author

    Updated screenshot link — gist raw URLs do not render inline in GitHub issues.

    Plugin install failure in BB Community UI

  4. added
    partial-repro
    on Sep 12, 2026
  5. bb-slop-cop commented on Sep 12, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classified Bug · High priority · Medium effort; added desktop, plugins, and partial-repro.

    Reproduction and root-cause report — PARTIALLY REPRODUCED, high confidence in the shared packaging root cause.

    On trusted main (3b37d2790), two clean checkouts reproduced the dependency collector/copier dropping 60 of npm’s 65 runtime dependencies. The staged npm exited 7 with missing proc-log; the runnable-npm regression assertion failed in both runs. Both full builds passed. Linux AppImage execution remains unverified on this macOS host.

    No PR: preserving npm’s bundled dependency tree requires packaging changes, which this rule excludes from automatic fixes.

    AGENT GENERATED

  6. aulneau commented on Sep 12, 2026

    @aulneau

    nice, thank you for this!

  7. added a commit that references this issue on Sep 12, 2026
    9a68828
  8. Dave4272-Office commented on Sep 14, 2026

    @Dave4272-Office
    Author

    @SawyerHood Thank you for the prompt fixing of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    desktoppartial-reproplugins

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions