v2/docs/REMOTE_INSTALL_FIX.md
npx claude-flow@alpha was failing in remote environments (GitHub Codespaces, Docker containers) with:
npm ERR! code ENOENT
npm ERR! syscall spawn sh
npm ERR! path /home/codespace/.npm/_npx/7cfa166e65244432/node_modules/better-sqlite3
npm ERR! errno -2
npm ERR! enoent spawn sh ENOENT
[email protected] has better-sqlite3@^11.7.0 as a required dependencybetter-sqlite3 requires native compilation with build tools (python, make, gcc, g++)better-sqlite3 in optionalDependencies, having agentdb in regular dependencies forced npm to try building itagentdb is no longer installed by default✅ npx claude-flow@alpha --version works without build tools
✅ Core functionality works with in-memory storage
✅ Graceful fallback when SQLite/AgentDB unavailable
✅ Full functionality when locally installed with build tools
For users who need persistent vector storage with AgentDB:
# 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
# Alpine:
apk add python3 make g++
# Then install agentdb
npm install agentdb
If you previously ran npx claude-flow@alpha and got the error:
Clear npx cache:
rm -rf ~/.npm/_npx
Test with v2.7.13:
npx [email protected] --version
Or use alpha tag (wait 5-10 minutes after release):
npx claude-flow@alpha --version
Expected output:
v2.7.13
The Docker test shows a known npm "Lock compromised" error in minimal container environments. This is an npm bug (https://github.com/npm/cli/issues/4828) unrelated to our package. The package installs correctly in actual Codespaces environments.
package.json - Moved agentdb from dependencies to none (removed), updated descriptionsrc/memory/fallback-store.js - Already had graceful fallback (no changes needed)src/memory/sqlite-wrapper.js - Already checked for module availabilityscripts/install-arm64.js - Already had graceful error handlingBreaking change: Users who rely on AgentDB vector storage will need to manually install it:
npm install claude-flow@alpha agentdb
Non-breaking: Users who only use basic memory storage (99% of users) are unaffected.
# Verify npm registry
npm view claude-flow@alpha version
# Should show: 2.7.13
npm view claude-flow@alpha dependencies
# Should NOT include: agentdb
npm view claude-flow@alpha optionalDependencies
# Should include: better-sqlite3, diskusage, node-pty, @types/better-sqlite3