Project doesn't build on M1 macbooks
See original GitHub issueDescribe the bug
Looks like the project doesn’t get built on M1 mac because of electron's
dependency.
M1 macs are supported on electron from version 11 according to this blog post.
To Reproduce Steps to reproduce the behavior:
- Build the project on any m1 device.
Expected behavior
Should be able to install
, build
or test
on a M1 system.
Error Log
> npm install
> electron@9.4.4 postinstall /Users/****/****/a11yInsights/node_modules/react-devtools/node_modules/electron
> node install.js
HTTPError: Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v9.4.4/electron-v9.4.4-darwin-arm64.zip
at EventEmitter.<anonymous> (/Users/****/****/a11yInsights/node_modules/got/source/as-stream.js:35:24)
at EventEmitter.emit (events.js:315:20)
at module.exports (/Users/****/****/a11yInsights/node_modules/got/source/get-response.js:22:10)
at ClientRequest.handleResponse (/Users/****/****/a11yInsights/node_modules/got/source/request-as-event-emitter.js:155:5)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:327:22)
at ClientRequest.origin.emit (/Users/****/****/a11yInsights/node_modules/@szmarczak/http-timer/source/index.js:37:11)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:641:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)
at TLSSocket.socketOnData (_http_client.js:509:22)
npm WARN @typescript-eslint/eslint-plugin@4.21.0 requires a peer of @typescript-eslint/parser@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@9.4.4 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@9.4.4 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Are you willing to submit a PR?
Sure. But looks like it might have to do something with the official microsoft electron released build that the project can use.
Did you search for similar existing issues?
Yes.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Can't build to simulator on Apple Silicon
It only popped up when trying to build on my new M1 MacBook Air and Xcode 12. I've tried everything that's been reported...
Read more >SDK doesn't build on Xcode running on M1 based Mac #731
As a workaround, we are running Xcode on Rosetta to be able to use the SDK inside the project. Datadog SDK version: 1.8.0....
Read more >Can't build flutter project on macbook pro m1 due to podfile error
Please try below commands on M1 machine: sudo arch -x86_64 gem install ffi arch -x86_64 pod install.
Read more >Apple M1 – Xcode error when build in simulator - Narlei Moreira
If you have seen this error: “Building for iOS Simulator, but linking in dylib built for iOS, file for architecture arm64.
Read more >I can't build iOS Build on my Apple M1 MacBook? - Unity Forum
It's same project and same Unity Version for both computer and I am doing the same action for both. My silicon doesn't have...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @ferBonnin , Sorry for replying late. It works now. Thanks for the fix. 😃
Per conversation with Peter, this will get addressed with feature work. @ferBonnin to add to the right feature.