Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v9.4.4/electron-v9.4.4-darwin-arm64.zip

I'm trying to install node modules for react native project in M1 macbook pro. While trying to run npm install or yarn install I'm having this error.

error /Users/akash/Documents/Projects/business-hub/node_modules/electron: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /Users/akash/Documents/Projects/business-hub/node_modules/electron
Output:
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/akash/Documents/Projects/business-hub/node_modules/got/source/as-stream.js:35:24)
    at EventEmitter.emit (node:events:369:20)
    at module.exports (/Users/akash/Documents/Projects/business-hub/node_modules/got/source/get-response.js:22:10)
    at ClientRequest.handleResponse (/Users/akash/Documents/Projects/business-hub/node_modules/got/source/request-as-event-emitter.js:155:5)
    at Object.onceWrapper (node:events:476:26)
    at ClientRequest.emit (node:events:381:22)
    at ClientRequest.origin.emit (/Users/akash/Documents/Projects/business-hub/node_modules/@szmarczak/http-timer/source/index.js:37:11)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:636:27)

I'm unable to find which of my packages are using electron for that I can not upgrade the version of electron.

like image 576
Akash Sarkar Avatar asked Mar 31 '21 09:03

Akash Sarkar


People also ask

How do I install electron in my App?

To install prebuilt Electron binaries, use npm . The preferred method is to install Electron as a development dependency in your app: For more installation options and troubleshooting tips, see installation. For info on how to manage Electron versions in your apps, see Electron versioning.

How to generate GitHub personal access token for 404 error?

Typically, GitHub send a 404 error when your client isn't properly authenticated. Make sure you have proper permissions on GitHub personal access token. To generate a GitHub personal access token, follow the GitHub documentation. The token must have the “repo” permission. Hope this helps. Do let us know if you any further queries.

What version of react DevTools is embedded in the debugger?

The React Native Debugger embeds a specific version of React DevTools (typically the latest version). The exact version will be shown in the error dialog. For example, the dialog below shows version 4.12.4: We recommend locking the embedded backend in React Native to the same version as the frontend using a Yarn "resolution":

What is a 404 error in Lifewire?

He writes troubleshooting content and is the General Manager of Lifewire. A 404 error is an HTTP status code that means that the page you were trying to reach on a website couldn't be found on their server . To be clear, the error indicates that while the server itself is reachable, the specific page showing the error is not.


1 Answers

React debugging tools require electron version 11.0.1 in m1 macs. As described here
If using Yarn, you can add a resolutions entry to package.json specifying which version to install:

"resolutions": {
  "electron": "^11.0.1"
}

and then yarn install.

like image 133
Akash Sarkar Avatar answered Oct 21 '22 00:10

Akash Sarkar