lwille / node-gphoto2

A Node.js wrapper for libgphoto2
MIT License
296 stars 91 forks source link

mach-o file have 'x86_64', need 'arm64e' #144

Open edouardlib opened 2 years ago

edouardlib commented 2 years ago

I'm posting an issue since I can't find a way to resolve this. Everything is installed find but when I want to use gphoto2 the module can't find the right file.

I'm working on a

With

I've already search on the known and resolved issues.

Thanks you!

Uncaught Error: dlopen(/Users/.../node_modules/gphoto2/build/Release/gphoto2.node, 0x0001): tried: '/Users/.../node_modules/gphoto2/build/Release/gphoto2.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/gphoto2.node' (no such file), '/usr/lib/gphoto2.node' (no such file)
    at process.func [as dlopen] (node:electron/js2c/asar_bundle:5)
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199)
    at Object.func [as .node] (node:electron/js2c/asar_bundle:5)
    at Module.load (node:internal/modules/cjs/loader:988)
    at Module._load (node:internal/modules/cjs/loader:829)
    at Function.c._load (node:electron/js2c/asar_bundle:5)
    at Function.o._load (node:electron/js2c/renderer_init:33)
    at Module.require (node:internal/modules/cjs/loader:1012)
    at require (node:internal/modules/cjs/helpers:94)
    at Object.<anonymous> (/Users/Edouard/Desktop/Aika/aika/node_modules/gphoto2/index.js:1)
edouardlib commented 2 years ago

Any advice? :)