Skip to content

Plugin requires Bun but doesn't install it automatically - unclear error messageΒ #565

Description

@abkrim

🌎 Leave report in ANY language, and it will auto translate to English

πŸ” Collecting system diagnostics...
βœ“ Version information collected
βœ“ Platform details collected
βœ“ Worker status checked
βœ“ Logs extracted (last 0 lines)
βœ“ Configuration loaded

πŸ“‹ System Summary:
Claude-mem: v9.0.0
Claude Code: not installed or not in PATH
Platform: macOS 26.2 (arm64)
Worker: Not running

Context

After installing the MCP plugin using the marketplace commands, multiple errors appeared when restarting the application.

Initial Errors

The first errors that appeared were:

SessionStart:startup says: Plugin hook error: /bin/sh: bun: command not found

This error repeated three times, indicating that the system is looking for the bun runtime but cannot find it installed in the system PATH.

Log Analysis

When reviewing the plugin logs at /Users/abkrim/.claude-mem/logs/claude-mem-2026-01-06.log, the following issues were identified:

  1. Worker unavailable: The MCP server started correctly, but the associated Worker is not available:

    [WARN] Worker not available {"workerUrl":"http://127.0.0.1:37777"}
    [WARN] Tools will fail until Worker is started
    
  2. Missing package.json: When trying to run npm run worker:restart, it was found that the package.json file does not exist in the configuration directory:

    npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, 
    open '/Users/abkrim/.claude-mem/package.json'
    

Root Cause

The plugin claude-mem requires Bun as a dependency to run the worker, but:

  1. Bun is not installed automatically during plugin installation
  2. The error message Plugin hook error: /bin/sh: bun: command not found is not clear about the missing dependency
  3. There is no visible documentation about this requirement in the installation process

Environment Details

  • Claude-mem version: v9.0.0
  • Platform: macOS 26.2 (arm64 / Apple Silicon)
  • Node.js: v25.2.1
  • NPM: v11.6.2
  • Installation method: Claude Code marketplace

Solution Applied

The issue was resolved by manually installing Bun:

# Install Bun using Homebrew (recommended for macOS)
brew tap oven-sh/bun
brew install bun

# Restart the worker
cd ~/.claude/plugins/marketplaces/thedotmack
npm run worker:restart

After installing Bun, the worker started successfully:

Worker: Running (PID 97486, port 37777)

Suggestions for Improvement

  1. Auto-install Bun: Include Bun installation as part of the plugin setup process, or at least check for its presence and provide clear installation instructions
  2. Better error messages: Improve the error message to clearly indicate that Bun is missing and provide installation instructions
  3. Documentation: Add a prominent note in the README/installation docs that Bun is a prerequisite
  4. Installation check: Consider adding a pre-flight check during plugin installation that detects if Bun is installed and shows platform-specific installation commands if missing

Additional Notes

The plugin works perfectly after installing Bun. This is purely a UX/installation issue that could confuse users who are not familiar with the Bun runtime requirement.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions