I\'m trying to use sequelize and sqlite with electron in a desktop application but get the following error when running the app via npm start (which runs node
npm start
node
I've run into this error a number of times, and the solution that works for me is to install electron-rebuild, and then run:
electron-rebuild
electron-rebuild -w sqlite3 -p
The -p flag here is required for this to work, as sqlite3 uses node-pre-gyp.
-p