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

"Bad CPU type in executable" installation error on M1 Mac #23

Open
djpowers opened this issue May 27, 2022 · 2 comments · May be fixed by #27
Open

"Bad CPU type in executable" installation error on M1 Mac #23

djpowers opened this issue May 27, 2022 · 2 comments · May be fixed by #27

Comments

@djpowers
Copy link

I'm getting this error on an M1 Mac when running npx macos-audio-devices:

sh: ~/.npm/_npx/ce1ffa718b3a0753/node_modules/.bin/macos-audio-devices: Bad CPU type in executable

I understand that this is due to not having Rosetta 2 installed, but I'm wondering if it would be possible to build the npm package for Apple Silicon systems (arm64). Not sure how large of an undertaking this would be, but was curious if it might be doable or what such a process might entail.

@djpowers
Copy link
Author

For anyone arriving at this issue, the PR linked above hasn't yet been merged, but you can use the forked version as a drop-in replacement:

Thanks @stefansundin for forking and republishing!

@dawei101
Copy link

The forked version also get error
Command failed with exit code 1: /private/var/folders/z4/bfqcydyx34l47r9ctb1js4000000gn/T/AppTranslocation/548C3DC1-E239-49D0-9191-1F29BA6CE8B6/d/xxxxxxxx.app/Contents/Resources/app.asar.unpacked/node_modules/@spotxyz/macos-audio-devices/audio-devic...

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

Successfully merging a pull request may close this issue.

2 participants