<h3 dir="auto">Preflight Checklist</h3>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>7.0.0</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Raspbian GNU/Linux 9.4</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>N/A</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Electron Package should be installed</p>
<h3 dir="auto">Actual Behavior</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@pi:/home/pi/MagicMirror# npm i electron@latest

&gt; electron@7.0.0 postinstall /home/pi/MagicMirror/node_modules/electron
&gt; node install.js

(node:1928) UnhandledPromiseRejectionWarning: HTTPError: Response code 404 (Not Found)
    at EventEmitter.emitter.on.response (/home/pi/MagicMirror/node_modules/got/source/as-stream.js:35:24)
    at EventEmitter.emit (events.js:180:13)
    at module.exports (/home/pi/MagicMirror/node_modules/got/source/get-response.js:22:10)
    at ClientRequest.handleResponse (/home/pi/MagicMirror/node_modules/got/source/request-as-event-emitter.js:155:5)
    at Object.onceWrapper (events.js:272:13)
    at ClientRequest.emit (events.js:185:15)
    at ClientRequest.origin.emit.args [as emit] (/home/pi/MagicMirror/node_modules/@szmarczak/http-timer/source/index.js:37:11)
    at HTTPParser.parserOnIncomingClient (_http_client.js:540:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:117:17)
    at TLSSocket.socketOnData (_http_client.js:445:20)
(node:1928) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1928) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
+ electron@7.0.0
added 2 packages in 40.967s"><pre class="notranslate"><code class="notranslate">root@pi:/home/pi/MagicMirror# npm i electron@latest

&gt; electron@7.0.0 postinstall /home/pi/MagicMirror/node_modules/electron
&gt; node install.js

(node:1928) UnhandledPromiseRejectionWarning: HTTPError: Response code 404 (Not Found)
    at EventEmitter.emitter.on.response (/home/pi/MagicMirror/node_modules/got/source/as-stream.js:35:24)
    at EventEmitter.emit (events.js:180:13)
    at module.exports (/home/pi/MagicMirror/node_modules/got/source/get-response.js:22:10)
    at ClientRequest.handleResponse (/home/pi/MagicMirror/node_modules/got/source/request-as-event-emitter.js:155:5)
    at Object.onceWrapper (events.js:272:13)
    at ClientRequest.emit (events.js:185:15)
    at ClientRequest.origin.emit.args [as emit] (/home/pi/MagicMirror/node_modules/@szmarczak/http-timer/source/index.js:37:11)
    at HTTPParser.parserOnIncomingClient (_http_client.js:540:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:117:17)
    at TLSSocket.socketOnData (_http_client.js:445:20)
(node:1928) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1928) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
+ electron@7.0.0
added 2 packages in 40.967s
</code></pre></div>
<p dir="auto">Then When I run the Project,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
/home/pi/MagicMirror/node_modules/electron/index.js:14
    throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
    ^

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
    at getElectronPath (/home/pi/MagicMirror/node_modules/electron/index.js:14:11)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/node_modules/electron/index.js:18:18)
    at Module._compile (internal/modules/cjs/loader.js:654:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
    at Module.load (internal/modules/cjs/loader.js:566:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
    at Function.Module._load (internal/modules/cjs/loader.js:498:3)
    at Module.require (internal/modules/cjs/loader.js:598:17)
    at require (internal/modules/cjs/helpers.js:11:18)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! magicmirror@2.9.0 start: `sh run-start.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.9.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-10-27T00_35_37_411Z-debug.log"><pre class="notranslate"><code class="notranslate">
/home/pi/MagicMirror/node_modules/electron/index.js:14
    throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
    ^

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
    at getElectronPath (/home/pi/MagicMirror/node_modules/electron/index.js:14:11)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/node_modules/electron/index.js:18:18)
    at Module._compile (internal/modules/cjs/loader.js:654:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
    at Module.load (internal/modules/cjs/loader.js:566:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
    at Function.Module._load (internal/modules/cjs/loader.js:498:3)
    at Module.require (internal/modules/cjs/loader.js:598:17)
    at require (internal/modules/cjs/helpers.js:11:18)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! magicmirror@2.9.0 start: `sh run-start.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.9.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-10-27T00_35_37_411Z-debug.log
</code></pre></div>
<p dir="auto">Also, when I reinstall, it has same issue.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Just do <code class="notranslate">npm i electron@latest</code></p>
<h3 dir="auto">Update 2</h3>
<p dir="auto">@xiaoshan5733 has found a solution for the time being (located below in the comments). For visibility, I'll post it here:</p>
<blockquote>
<p dir="auto">I solved the problem, you should config like this in your ~/.npmrc file:</p>
</blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="arch=armv7l"><pre class="notranslate"><code class="notranslate">arch=armv7l
</code></pre></div>
<blockquote>
<p dir="auto">You can get arch from <code class="notranslate">uname -m</code></p>
</blockquote>
<p dir="auto">I've tested this and can confirm that I'm able to proceed past the error and run the quick start application. However, I'm keeping this issue open until a developer responds to indicate whether this issue is still relevant to development and if it's intended behavior.</p>
<h3 dir="auto">Update</h3>
<p dir="auto">Just tested on a fresh SD-card install of the latest Raspbian. Made sure to run <code class="notranslate">sudo apt update &amp;&amp; sudo apt full-upgrade</code>, downloaded the latest version of node (<code class="notranslate">v13.0.1</code>) and then tried installing via <code class="notranslate">npm install --save-dev electron</code>. Still have the same problem. Raspberry Pi 4, 16 GB MicroSD, fresh install</p>
<h3 dir="auto">Preflight Checklist</h3>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong><br>
Cannot install</li>
<li><strong>Operating System:</strong><br>
Raspbian, latest sept. build</li>
<li><strong>Last Known Working Electron version:</strong><br>
None</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">I expect to be able to install electron.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">I receive a HTTPError -- Response code 404 (Not Found).</p>
<h3 dir="auto">To Reproduce</h3>
<ol dir="auto">
<li>Run <code class="notranslate">git clone https://github.com/electron/electron-quick-start</code></li>
<li>CD into the directory: <code class="notranslate">cd electron-quick-start</code></li>
<li>Run npm install: <code class="notranslate">npm install</code></li>
</ol>
<h3 dir="auto">Screenshots</h3>
<p dir="auto"><a href="https://gyazo.com/cb7b3905b3ce24eddf0dc2626cbfdd13" rel="nofollow">Screenshot of output</a></p>
<h3 dir="auto">Additional Information</h3>
<ul dir="auto">
<li><code class="notranslate">node -v</code>: <code class="notranslate">v10.17.0</code></li>
<li><code class="notranslate">npm -v</code>: <code class="notranslate">6.11.3</code></li>
<li>I've tried deleting <code class="notranslate">node_modules/</code> and rerunning <code class="notranslate">npm install</code>.</li>
<li>Install seems to go through while using <code class="notranslate">yarn</code> but when starting the program it spits out: <code class="notranslate">Your install of electron is incorrect. Please delete 'node_modules/electron' and run 'npm install' again.</code> (or something of that nature).</li>
<li>I've run <code class="notranslate">sudo apt update &amp;&amp; sudo apt upgrade -y</code>, didn't help</li>
<li>I'm on a hardwire connection which is working fine. The internet works fine on my Pi (I can go into chromium and browse as well as <code class="notranslate">ping</code> sites)</li>
</ul>