m4heshd / better-sqlite3-multiple-ciphers

better-sqlite3 with multiple-cipher encryption support 🔒
MIT License
137 stars 27 forks source link

The system is not compatible #79

Closed jws2001 closed 6 months ago

jws2001 commented 7 months ago

node_modules/better-sqlite3-multiple-ciphers/build/Release/better_sqlite3.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

m4heshd commented 7 months ago

Need much more information than that. Sounds like you're on an M-series Mac. Node version? Are you trying on Node or Electron? Platform, OS, reproducible repo. All of this information would be very helpful in debugging.

jws2001 commented 7 months ago

image

jws2001 commented 7 months ago

macM1 system Electron

m4heshd commented 7 months ago

The problem here is that your node module installation seems to have run natively but the application itself is trying to run via Rosetta. It's a bit difficult to debug your specific issue since I don't use Mac but you need to figure out how to run your node instance natively. Alternatively, you can try the following instructions:

  1. Install node-gyp on your project locally using npm install node-gyp@latest
  2. Run the following command to recompile the module against arm64 architecture.
node-gyp -C ./node_modules/better-sqlite3-multiple-ciphers/ clean configure --arch=arm64 rebuild