How to use sqlite3 module with electron?


#1

I want to develop desktop app using electron that uses sqlite3 package installed via npm with the command

npm install --save sqlite3
but it gives the following error in electron browser console

Uncaught Error: Cannot find module ‘E:\allcode\eapp\node_modules\sqlite3\lib\binding\node-v45-win32-x64\node_sqlite3.node’

my development environment is windows 8.1 x64 node version 12.7


Compatible version with electron
#2

This is a duplicate of this previous topic:

We like to unify similar discussions under one topic so that people don’t have to read a bunch of different threads to get the whole story. Please continue the discussion there. I’ll be closing this topic as duplicate.


#3

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.