question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Project doesn't build on M1 macbooks

See original GitHub issue

Describe 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:

  1. 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:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Shobhit1commented, Sep 6, 2021

Hey @ferBonnin , Sorry for replying late. It works now. Thanks for the fix. 😃

1reaction
ferBonnincommented, Apr 12, 2021

Per conversation with Peter, this will get addressed with feature work. @ferBonnin to add to the right feature.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found