Skip to content

πŸ› NPM package regression: claude-flow@alpha has outdated agentdb dependency causing install failuresΒ #848

@chrisayl

Description

@chrisayl

Problem

The npm package claude-flow@alpha (v2.7.26) has a dependency regression that causes installation failures for users.

Current NPM Package Status

$ npm view claude-flow@alpha version
2.7.26

$ npm view claude-flow@alpha optionalDependencies.agentdb
^1.3.9  ❌ OLD VERSION

Local Repository Status

# package.json (v2.7.16)
"agentdb": "^1.6.1"  βœ… FIXED VERSION

Issue Details

Symptom: Users installing via npx claude-flow@alpha mcp start or following README instructions get dependency conflicts with @xenova/transformers.

Root Cause: The fix for agentdb was committed locally in v2.7.16 but npm package v2.7.26 still has the old dependency version.

Impact:

  • Users cannot cleanly install from npm
  • README instructions (claude mcp add claude-flow npx claude-flow@alpha mcp start) are broken
  • Forces users to install from source instead

Timeline

  1. βœ… v2.7.16 (local): Fixed agentdb to ^1.6.1
  2. ❌ v2.7.26 (npm): Published without the fix, still has ^1.3.9
  3. βœ… Now: PR fix: Resolve dependency conflicts for npm package compatibility (v2.7.17)Β #847 includes both fixes

Solution

PR #847 fixes two dependency issues:

  1. agentdb: Ensures ^1.6.1 is included (from v2.7.16)
  2. typescript-eslint: Updates to ^8.46.0 for TypeScript 5.9.2 support

After merging PR #847, please publish to npm:

npm version patch  # or appropriate semver bump
npm publish --tag alpha

Reproduction Steps

# Clean environment
rm -rf node_modules package-lock.json

# Install from npm (current broken version)
npx claude-flow@alpha --version
# This will show v2.7.26 with [email protected] causing conflicts

# vs Local repository (working version)
git clone https://github.com/ruvnet/claude-flow.git
cd claude-flow
npm install  # βœ… Works with [email protected]

Verification After Fix

After publishing the fixed version to npm, verify with:

npm view claude-flow@alpha optionalDependencies.agentdb
# Should show: ^1.6.1

Related

Priority

High - This affects all new users following the README installation instructions.


CC: @ruvnet - Please review and merge PR #847, then publish to npm to fix the user experience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions