WebTemplateStudio
WebTemplateStudio copied to clipboard
Electron error when running the command "yarn" on M1 Chip Mac React Native
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:
- Clone this project: git clone --branch Mockup-ReactNative https://github.com/microsoft/WebTemplateStudio.git
- Go to your react native app root directory
- Run yarn
- See the following error:
(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
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 :)