Getting this below error with macOs Big Sur. Any help.

sfdx --version
/usr/local/bin/sfdx: line 44: /usr/local/lib/sfdx/bin/node: Bad CPU type in executable
  • Have you tried reinstalling SFDX yet?
    – Raul
    Jun 26 at 16:50
  • yes. It is a fresh installation. Jun 26 at 19:40

I'm going to assume you're on a newer Mac using the Apple M1 chip. There's already an open issue on the CLI github regarding this error.

It seems they're waiting for Nodejs to release a version that supports the M1 chip.

The workaround, for now, is to install Rosetta on your Mac. This

enables a Mac with Apple silicon to use apps built for a mac with an Intel processor.

The below command will help you install it

softwareupdate --install-rosetta

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.