Zsh: bad CPU type in executable: mongo


Trying to install mongo shell on Apple Mac M1 - Bigsur 11.2

Did anyone see this before “zsh: bad CPU type in executable: mongo”

can anyone help me please.


I do not think that the new processor of the M1 is supported yet. Check on MongoDB Developer Community Forums for verification.

What is your default shell?
If it is not zsh try to switch to it and try

If you are in zsh then it could be version compatibilty issue like [steevej-1495] mentioned.
In some cases 32 bit vs 64 bit also cause issues
Check this links.May help