Will a project build on linux for windows work, if a node_module doesn't work correctly on windows natively?


I’m having trouble getting SQLite to work with Electron on windows. I tried ‘electron-rebuild’ and also tried rebuilding SQLite manually, both didn’t seem to work. My question is if I start developing my project on Linux (where SQLite seems to work fine) and later publish for windows, will the published project work?


Native Node modules/addons must be rebuilt to target the platform you wish to run them on, so no, the binaries you build on Linux won’t run on Windows.


Thank you. So I guess I’ll just keep messing around with SQLite until I get it to work on windows.