Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
edouardlib opened this issue Jan 7, 2022 · 1 comment
Open

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

edouardlib opened this issue Jan 7, 2022 · 1 comment

Comments

@edouardlib
Copy link

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

  • MacOS 12
  • Apple Silicon M1 max.

With

  • Nodejs 12

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
Copy link
Author

Any advice? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants