Installing and rebuilding Sqlite3 for use with Electron

Опубликовано: 01 Июнь 2026
на канале: Antonin Januska
20,957
190

Having trouble with a native dependency? Getting a "module not found" on native modules even thought you've just installed them?

Electron Documentation - https://electronjs.org/docs/tutorial/...
Sqlite3 + Electron stackoverflow - https://stackoverflow.com/questions/3...


Steps from SO question + update to commands:

npm install --save-dev electron-builder
npm install sqlite3

Add to package.json script:

"postinstall": "electron-builder install-app-deps"

And then run:

npm run postinstall