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: README.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,37 @@ npm run build
58
58
59
59
---
60
60
61
+
## Using with Electron
62
+
63
+
`better-sqlite3` is a native module and must be rebuilt against Electron's Node.js runtime. If you see a `NODE_MODULE_VERSION` mismatch error, rebuild after installing dependencies:
64
+
65
+
```bash
66
+
npm install
67
+
npx electron-rebuild
68
+
```
69
+
70
+
Or add a postinstall hook so the rebuild happens automatically:
0 commit comments