Closed jws2001 closed 6 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.
macM1 system Electron
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:
node-gyp
on your project locally using npm install node-gyp@latest
arm64
architecture.node-gyp -C ./node_modules/better-sqlite3-multiple-ciphers/ clean configure --arch=arm64 rebuild
node_modules/better-sqlite3-multiple-ciphers/build/Release/better_sqlite3.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))