axiomhq/next-axiom

EBADPLATFORM with M1 Mac

scole954387 opened this issue · 1 comments

I've been using next-axiom with my m1 mac for local development that I deploy to vercel via pushing code to branches/main in github. This was working until I had to delete the node_module folder and reinstall the packages and now it says it cannot install it on an m1 mac. I don't recall having any issues installing it approximately a week ago. Is there something I'm missing?

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for @next/swc-linux-x64-gnu@13.4.6: wanted {"os":"linux","arch":"x64"} (current: {"os":"darwin","arch":"arm64"})
npm ERR! notsup Valid OS: linux
npm ERR! notsup Valid Arch: x64
npm ERR! notsup Actual OS: darwin
npm ERR! notsup Actual Arch: arm64

Turns out as the error indicates it has nothing to do with axiom. Problem was a mixed up git merge I performed. Not sure exactly what was incorrectly merged (seems to be related to using vercel). Once I went back through older files on github I just copied the package.json file and deleted the package.json.lock file and the node_module and reinstalled the packages with npm install. Now it's working again.