v2/docs/V2.7.14_RELEASE_NOTES.md
Problem: npx claude-flow@alpha was failing in GitHub Codespaces and minimal Docker environments with better-sqlite3 build errors.
Root Cause: The [email protected] package requires better-sqlite3 as a hard dependency, which needs native compilation tools (python, make, gcc). Remote environments often lack these build tools.
Solution: Removed agentdb from package dependencies entirely. It's now an optional manual installation for users who need persistent vector storage.
# 1. CLEAR NPX CACHE (This is critical!)
rm -rf ~/.npm/_npx
# 2. Test with latest version
npx [email protected] --version
# Expected output:
# v2.7.14
# Just run normally - no build tools needed!
npx claude-flow@alpha --version
If you need persistent vector storage with AgentDB (most users don't):
# Install claude-flow locally (not via npx)
npm install claude-flow@alpha
# Install build tools if needed:
# Ubuntu/Debian:
sudo apt-get install python3 make g++
# macOS:
xcode-select --install
# Install agentdb separately
npm install agentdb
Check npm registry:
npm view claude-flow@alpha version
# Should show: 2.7.14
npm view claude-flow@alpha dependencies | grep agentdb
# Should return nothing (agentdb not in dependencies)
Users who rely on AgentDB vector storage must now install it manually:
npm install claude-flow@alpha agentdb
This affects <1% of users. The majority using basic memory storage are unaffected.
The remote installation issue is now fully resolved. Users can run npx claude-flow@alpha without build tools in GitHub Codespaces, minimal Docker containers, and any remote environment.
Remember to clear your npx cache if you previously experienced the error!