When running the init command from claude code I get `Cannot find package 'better-sqlite3' `
- Dominant language
- TypeScript
- Stars
- 72.7k
- Forks
- 8.6k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 83
Description
So when I launch /hive-mind:hive-mind-init on my windows 11 git bash windows terminal i get:
```
> /hive-mind:hive-mind-init is running…
● I'll initialize the Hive Mind collective intelligence system for you.
● Bash(npx claude-flow hive-mind init)
⎿ Error: - Initializing Hive Mind system...
✖ Failed to initialize Hive Mind system
Error: The module '\\?\C:\Users\glenn\AppData\Local\npm-cache\_npx\09002f125df728b2\node_modules\better-sqlite3\bu
ild\Release\better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 137. This version of Node.js requires
NODE_MODULE_VERSION 111. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`)
```
running: 1.0.113 (Claude Code)
I tried the solutions posted on the anthropic website, but no luck:
https://github.com/anthropics/claude-code/issues/871
any other suggestions on getting the sqlite version running? the in-memory is working. but I have a bigger project upcoming that will span over multiple days, so might be useful to be able to close my terminal :)
Contributor guide
Research direction
No repository file or test is named. Start by reproducing `npx claude-flow hive-mind init` from Windows Git Bash and inspect the `better-sqlite3` installation and Node.js version mismatch. Done means the init command successfully starts with persistent SQLite storage rather than only in-memory mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- cli, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100