Open kjrhody opened 6 months ago
What version of node, and more importantly, node-gyp? I bet if you install newer versions of both, the problem goes away. It works on my M1 MBP.
❯ node -v
v21.6.1
❯ uname -a
Darwin mbp.simerson.net 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64
❯ file build/Release/obj.target/core/core.o
build/Release/obj.target/core/core.o: LLVM bitcode, wrapper
When I run
npm install
the build finishes but it seems to build with thex86_64
architecture instead of the newarm64
architecture needed for the M3 chip that my computer uses. Then when I try to run my application, I get the following error:I can determine the architecture used in this file with the following:
I do not see any documentation or information about how to pass a flag to determine which architecture to use in this build?