WebTemplateStudio icon indicating copy to clipboard operation
WebTemplateStudio copied to clipboard

Electron error when running the command "yarn" on M1 Chip Mac React Native

Open JeanRoca opened this issue 3 years ago • 1 comments

Describe the bug This is an error a user is able to see when attempting to install the yarn packages for their React Native project on a Mac with an M1 chip.

To Reproduce Steps to reproduce the behavior:

  1. Clone this project: git clone --branch Mockup-ReactNative https://github.com/microsoft/WebTemplateStudio.git
  2. Go to your react native app root directory
  3. Run yarn
  4. See the following error: image (Error is Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v9.4.4/electron-v9.4.4-darwin-arm64.zip)

Expected behavior Yarn should install the packages without erroring

Additional context This link contains the workaround that solved the issue for me. It seems to be specific to Macs with the M1 chip https://stackoverflow.com/questions/66884720/response-code-404-not-found-for-https-github-com-electron-electron-releases

JeanRoca avatar May 05 '21 22:05 JeanRoca

I realize this might not be the appropriate place for this, but at least it can serve as a "known issues" for people that might encounter it :)

JeanRoca avatar May 05 '21 23:05 JeanRoca