Repository navigation
Description
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" --versionUI repro
- Open Plugins → BB Community.
- Select a git-based plugin with production dependencies, e.g. Bots Sidebar (
bots-sidebar) or Usage (usage). - 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
Evidence
- Investigation thread:
thr_sq66xycivu - Bundled npm version: 11.16.0
- Missing module:
proc-log(first failure inexit-handler.jsline 1:require('proc-log')) - Bundle layout:
npm/node_modules/does not exist in the AppImage; 60 of 65 direct runtime dependencies declared by bundled npm are physically absent. Exhaustive audit: https://gist.github.com/Dave4272-Office/067301ab6885df3019b408f0bc060e33 - Release smoke test that should catch this: bb ships a tarball smoke step that runs bundled
npm-cli.js --versionwithPATH=""— seepackages/bb-app/scripts/smoke-tarball.mjsat607df403("shipped npm without Node or npm on PATH"). That check appears not to have run (or not to have blocked release) for the Linux AppImage artifact. - Failed install side effects: empty git cache dirs under
~/.bb/plugins/cache/git/...; plugin is not registered as installed. - Supporting artifacts:
- Dependency audit: https://gist.github.com/Dave4272-Office/067301ab6885df3019b408f0bc060e33
- Suggested fix notes: https://gist.github.com/Dave4272-Office/c5263bebf976e0a95d012141df57f2e4
- UI screenshot: https://gist.github.com/Dave4272-Office/4266f75e92a4530721de454a6dd06fd7
What you ruled out
- Not specific to one plugin — Bots Sidebar and Usage both fail the same way; any git community plugin that reaches the
npm installstage should hit this. - Not a git or network failure — marketplace loads;
git ls-remoteresolves plugin repos. - Not fixed by system npm — installer invokes the bundled npm inside the AppImage mount.
- Not a viable manual workaround — AppImage mount is read-only; patching
node_modulesin place is not durable. - Same root cause as existing reports, new platform evidence:
- Bundled npm in the macOS app is shipped without its own node_modules, so every plugin install fails with Cannot find module 'proc-log' #3566 — macOS desktop app,
proc-logMODULE_NOT_FOUNDatnpm/lib/cli/exit-handler.jsduring plugin install. - bb.app 0.43.0: bundled npm missing 58/65 dependencies, breaks plugin update #3581 — bb.app 0.43.0 bundled npm missing 58/65 dependencies; exit 7 on git plugin update.
- This report adds a Linux AppImage reproduction and an exhaustive dependency audit for that artifact.
- Bundled npm in the macOS app is shipped without its own node_modules, so every plugin install fails with Cannot find module 'proc-log' #3566 — macOS desktop app,
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
Dave4272-Office commentedon Sep 12, 2026
Supporting artifacts (linked in the issue body; native GitHub attachments require repository write access):
Dave4272-Office commentedon Sep 12, 2026
Updated screenshot link — gist raw URLs do not render inline in GitHub issues.
bb-slop-cop commentedon Sep 12, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotClassified Bug · High priority · Medium effort; added
desktop,plugins, andpartial-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 missingproc-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.
aulneau commentedon Sep 12, 2026
nice, thank you for this!
Preserve bundled npm dependencies in desktop artifacts (get-bb#3590)
Dave4272-Office commentedon Sep 14, 2026
@SawyerHood Thank you for the prompt fixing of this issue.