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
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
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