WiseLibs / better-sqlite3

The fastest and simplest library for SQLite3 in Node.js.
MIT License
5.37k stars 394 forks source link

Switching between Linux and Windows #1040

Closed rayzorben closed 1 year ago

rayzorben commented 1 year ago

I sometimes have to be in Windows, so I want to continue development in Windows on my project. Typically I work in Linux.

What do I need to do when switching? In Windows I am getting the error better_sqlite3.node is not a valid Win32 application.

mceachen commented 1 year ago

Your node_modules contents is specific to the OS and version of node that was running at yarn install or npm install time.

You need to remove the directory and re-run yarn install or npm install every time you switch.