Open klyap opened 1 year ago
Hello @klyap,
It appears that the Electron version you're trying to use is not compatible with the arm64 architecture of your Apple Silicon Mac when using a version of Node.js newer than v12. To address this, you can use Node Version Manager (nvm
) to install and manage an older Node.js version. However, since the required version of Electron is not available for arm64, you will need to run your terminal under Rosetta, which allows you to use software designed for Intel x86 architecture.
Here's a step-by-step guide to resolve the issue:
Install Rosetta 2 (if not already installed):
Open the terminal and run the following command:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
Open Terminal using Rosetta:
Install nvm
:
Open the Rosetta Terminal and install nvm
by running the script from their GitHub repository (https://github.com/nvm-sh/nvm). You can usually do this with the following command:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
(Make sure to use the latest installation script from the nvm
GitHub page.)
Close and reopen the Terminal:
This is to ensure the nvm
commands are available in your terminal session. Open the Rosetta Terminal again.
Install and use Node.js v11:
With nvm
now installed, you can install Node.js v11 with:
nvm install 11
nvm use 11
Verify the Node.js version:
Ensure you're now using the correct Node.js version with:
node -v
Proceed with Electron installation:
Now, try installing Electron again or running your npm
commands that were failing previously.
Please let me know if this resolves your issue, or if you run into any more trouble!
This seems to be an issue specifically for running on M1 Macbooks.