AdobeDocs / app-builder

Documentation for Adobe App Builder

Home Page:https://developer.adobe.com/app-builder/docs/overview/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add documentation regarding node.js installation on Apple Silicon M1 Macs

shazron opened this issue · comments

M1 Macs are arm64 based. The team at node.js are starting to package fat binaries to include the arm64 arch, but they are only doing this moving forward, with Node 15 (odd numbers are unstable). Backporting to older node versions are probably not going to happen.

On the Terminal app (which will be arm based, in an M1 mac), when a user tries to install a node version < 15, for example using nvm, it will try to compile a version for arm64. Even though it might appear to compile, it will not work properly during runtime.

The user will need to be in the x86_64 arch when they are installing node versions < 15. There is a command line tool to prefix before your command (TODO: find out), or they can just do a Get Info on their Terminal, and check the Use Rosetta checkbox, then relaunch Terminal. Then any node versions that are installed are guaranteed to be x86_64.

Note: Rosetta might not be installed. Include instructions to install Rosetta 2.

@duynguyen wouldn't that be a great fit for the troubleshooting guide?