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
Then restart the app. This downloads the codex-acp binary to `apps/code/resources/codex-acp/`, which gets copied to `.vite/build/codex-acp/` during build.
72
74
73
-
## Database initialization failed (better-sqlite3 bindings not found)
Database initialization failed Error: Could not locate the bindings file.
79
81
```
80
82
81
-
The `better-sqlite3` native binary wasn't compiled for your Electron version. This commonly happens after a merge, branch switch or fresh install because the postinstall rebuild can fail silently (`|| true`).
## NODE_MODULE_VERSION mismatch after Electron upgrade
92
-
93
-
If you see an error like:
94
-
95
83
```
96
84
Database initialization failed Error: The module '.../better_sqlite3.node'
97
85
was compiled against a different Node.js version using
98
86
NODE_MODULE_VERSION 145. This version of Node.js requires
99
-
NODE_MODULE_VERSION 123. Please try re-compiling or re-installing
100
-
the module (for instance, using `npm rebuild` or `npm install`).
87
+
NODE_MODULE_VERSION 123.
101
88
```
102
89
103
-
A native module (usually `better-sqlite3`) was compiled against your system Node instead of Electron's bundled Node. This happens after pulling an Electron version bump because `electron-rebuild` picked up the wrong Node binary.
90
+
The `better-sqlite3` native binary wasn't compiled for your Electron version. This commonly happens after a merge, branch switch or Electron upgrade because the postinstall rebuild can fail silently (`|| true`).
0 commit comments