Error Installing on M1 Macbook

Hi @SM_A,

You will need Rosetta2 emulation installed (a one-off procedure) to run MongoDB 5.0 on M1. NOTE: native M1 binaries are coming with MongoDB 6.0.

However, I expect macOS should automatically prompt you to install Rosetta rather than complaining about a bad CPU type.

Can you confirm the output of:

file $(which mongod)

sw_vers

On my M1 with a brew install of MongoDB 5.0 the file command returns:

/opt/homebrew/bin/mongod: Mach-O 64-bit executable x86_64

You could try manually installing Rosetta 2:

softwareupdate --install-rosetta

Regards,
Stennie