I am on an M1 mac and am trying to download and run a project that is meant for x86_64. I opened my terminal and put it into x86_64 mode using env /usr/bin/arch -x86_64 /bin/zsh --login
. I then installed the required dependencies and tried to run it yarn start
. I get the following error
Error: dlopen(//ExpressLRS-Configurator/src/node_modules/@serialport/bindings/build/Release/bindings.node, 0x0001): tried: '//ExpressLRS-Configurator/src/node_modules/@serialport/bindings/build/Release/bindings.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/bindings.node' (no such file), '/usr/lib/bindings.node' (no such file)`
So obviously the issue is some architecture issue. My confusion is what is needing the arm64 build, shouldn't everything be in the project be expecting x86. I am both looking for some clarification into navigating x86/arm complications during development cause I have run into issues like this quite a few times and also any direct solutions to this issue.