You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: FAQ.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -520,6 +520,32 @@ dist/
520
520
521
521
## 🔧 Troubleshooting
522
522
523
+
### `better-sqlite3` NODE_MODULE_VERSION mismatch
524
+
525
+
**Error message**:
526
+
```
527
+
Error: The module '.../better_sqlite3.node' was compiled against a different Node.js version
528
+
using NODE_MODULE_VERSION XX. This version of Node.js requires NODE_MODULE_VERSION YY.
529
+
```
530
+
531
+
**Cause**: The `better-sqlite3` native module was compiled for a different Node.js version than the one you're running. This commonly happens when:
532
+
- You installed dependencies with one Node.js version and later switched versions
533
+
- Prebuilt binaries don't match your Node.js version
534
+
535
+
**Solution**:
536
+
```bash
537
+
# Option 1: Rebuild the native module (recommended)
538
+
npm rebuild better-sqlite3
539
+
540
+
# Option 2: Rebuild from source
541
+
npm install better-sqlite3 --build-from-source
542
+
543
+
# Option 3: Reinstall all dependencies
544
+
rm -rf node_modules && npm install
545
+
```
546
+
547
+
> **Note**: Building from source requires C++ build tools. On macOS run `xcode-select --install`, on Ubuntu run `sudo apt install build-essential`, on Windows install [Visual Studio Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/).
548
+
523
549
### "No active session found" error
524
550
525
551
**Cause**: No workflow session is currently active.
> **Troubleshooting**: If you see `NODE_MODULE_VERSION` mismatch errors for `better-sqlite3`, run `npm rebuild better-sqlite3`. See [FAQ - Troubleshooting](FAQ.md#better-sqlite3-node_module_version-mismatch) for details.
0 commit comments