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

Support for ARM M1 Mac within SFDX-CLI #1045

Closed
thomasheuberger opened this issue Jun 16, 2021 · 6 comments
Closed

Support for ARM M1 Mac within SFDX-CLI #1045

thomasheuberger opened this issue Jun 16, 2021 · 6 comments
Labels
feature Issue or pull request for a new feature more information required Issue requires more information or a response from the customer

Comments

@thomasheuberger
Copy link

thomasheuberger commented Jun 16, 2021

I just installed SFDX-CLI (latest version from https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx.pkg, ) on my M1 MacBook Pro

sfdx-cli/7.105.0 darwin-x64 node-v14.9.0

and get

~ % sfdx -v /usr/local/bin/sfdx: line 44: /usr/local/lib/sfdx/bin/node: Bad CPU type in executable

Is there a native M1 version of SFDX-CLI without installing rosetta? If so, where's the download?

@thomasheuberger thomasheuberger added the feature Issue or pull request for a new feature label Jun 16, 2021
@uip-robot-zz
Copy link

This issue has been linked to a new work item: W-9474596

@github-actions
Copy link

Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments.

@peternhale
Copy link
Contributor

@thomasheuberger we are aware of the need to support Apple M1. Nodejs has yet to release a version that supports M1 w/o Rosetta. I located this issue that seems to be tracking progress for this effort.

@WillieRuemmele WillieRuemmele added the more information required Issue requires more information or a response from the customer label Jun 24, 2021
@no-response
Copy link

no-response bot commented Jul 1, 2021

This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance.

@no-response no-response bot closed this as completed Jul 1, 2021
@touzoku
Copy link

touzoku commented Jan 20, 2022

Nodejs supports M1 chips as of version 16. SFDX comes with a version 12 bundled. The fix is simple: just delete the outdated nodejs version and link a recent one as shown below.

Salesforce engineers do not have M1 macs anyway, so this fix might take forever.

rm -f /usr/local/lib/sfdx/bin/node
link -s /opt/homebrew/bin/node /usr/local/lib/sfdx/bin/node

@RodEsp
Copy link
Contributor

RodEsp commented Jan 20, 2022

We actually do have support for M1 but only as tarballs for now.
You can download the latest version at https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-darwin-arm64.tar.gz and install it using the installation instructions for tarballs found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Issue or pull request for a new feature more information required Issue requires more information or a response from the customer
Projects
None yet
Development

No branches or pull requests

6 participants