I want to develop desktop app using electron that uses sqlite3 package installed via npm with the command
npm install --save sqlite3
but it
I encounter this error too. Here is how i solve it:
npm install --save-dev electron-rebuild
then:
./node_modules/.bin/electron-rebuild
from: https://electronjs.org/docs/tutorial/using-native-node-modules
ps: While it's on rebuilding, don't use npm startto lanch the electron app. Otherwise the rebuild process would fail.