3

I have built an electron app in Mac OS, when I try to export the package for windows and try to run it throws me following error:

Error Screenshot

My app uses sqlite3, I installed sqlite using following command:

npm install sqlite3 --build-from-source

My NODE_PATH is also set to the node_modules folder, also tried following commands:

npm install --save-dev electron-rebuild

# Every time you run "npm install", run this
./node_modules/.bin/electron-rebuild

But still I am not able to run sqlite3 on windows with electron

1 Answer 1

0

sqlite3 relies on node-pre-gyp, so you need to use the workaround provided in electron-rebuild when building sqlite3 for Electron.

Sign up to request clarification or add additional context in comments.

1 Comment

When I use the electron-packager after I do electron-rebuild -f -w sqlite3, I get the same error after executing the exe file (windows) same issue on OSX. Has anyone figured out what to do about it ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.