<ul dir="auto">
<li>Electron version: 1.4.7</li>
<li>Operating system: Windows 10 (x64)</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">I am typing <code class="notranslate">npm -g install electron</code>. Electron should install as a globally accessible package.</p>
<h3 dir="auto">Actual behavior</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\WINDOWS\system32&gt;npm -g install electron
C:\Users\nakobe\AppData\Roaming\npm\electron -&gt; C:\Users\nakobe\AppData\Roaming\npm\node_modules\electron\cli.js

&gt; electron@1.4.7 postinstall C:\Users\nakobe\AppData\Roaming\npm\node_modules\electron
&gt; node install.js

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: write EINVAL
    at exports._errnoException (util.js:1022:11)
    at WriteStream.Socket._writeGeneric (net.js:715:26)
    at WriteStream.Socket._write (net.js:734:8)
    at doWrite (_stream_writable.js:334:12)
    at writeOrBuffer (_stream_writable.js:320:5)
    at WriteStream.Writable.write (_stream_writable.js:247:11)
    at WriteStream.Socket.write (net.js:661:40)
    at WriteStream.stream.write (C:\Users\nakobe\AppData\Roaming\npm\node_modules\electron\node_modules\single-line-log\index.js:12:16)
    at process.&lt;anonymous&gt; (C:\Users\nakobe\AppData\Roaming\npm\node_modules\electron\node_modules\single-line-log\index.js:17:29)
    at emitOne (events.js:101:20)
npm ERR! Windows_NT 10.0.14393
npm ERR! argv &quot;C:\\Program Files\\nodejs\\node.exe&quot; &quot;C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;-g&quot; &quot;install&quot; &quot;electron&quot;
npm ERR! node v7.1.0
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE

npm ERR! electron@1.4.7 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@1.4.7 postinstall script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls electron
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\WINDOWS\system32\npm-debug.log"><pre class="notranslate"><code class="notranslate">C:\WINDOWS\system32&gt;npm -g install electron
C:\Users\nakobe\AppData\Roaming\npm\electron -&gt; C:\Users\nakobe\AppData\Roaming\npm\node_modules\electron\cli.js

&gt; electron@1.4.7 postinstall C:\Users\nakobe\AppData\Roaming\npm\node_modules\electron
&gt; node install.js

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: write EINVAL
    at exports._errnoException (util.js:1022:11)
    at WriteStream.Socket._writeGeneric (net.js:715:26)
    at WriteStream.Socket._write (net.js:734:8)
    at doWrite (_stream_writable.js:334:12)
    at writeOrBuffer (_stream_writable.js:320:5)
    at WriteStream.Writable.write (_stream_writable.js:247:11)
    at WriteStream.Socket.write (net.js:661:40)
    at WriteStream.stream.write (C:\Users\nakobe\AppData\Roaming\npm\node_modules\electron\node_modules\single-line-log\index.js:12:16)
    at process.&lt;anonymous&gt; (C:\Users\nakobe\AppData\Roaming\npm\node_modules\electron\node_modules\single-line-log\index.js:17:29)
    at emitOne (events.js:101:20)
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "-g" "install" "electron"
npm ERR! node v7.1.0
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE

npm ERR! electron@1.4.7 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@1.4.7 postinstall script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls electron
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\WINDOWS\system32\npm-debug.log
</code></pre></div>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto"><code class="notranslate">npm install -g electron</code></p>
<h3 dir="auto">Things I've tried</h3>
<p dir="auto">I've tried deleting my <code class="notranslate">~\.electron</code> directory and other node-related files in my home directory. Nothing worked.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/451903/20158526/aa257bf8-a6d2-11e6-8f9d-b32d18c2f49e.PNG"><img src="https://cloud.githubusercontent.com/assets/451903/20158526/aa257bf8-a6d2-11e6-8f9d-b32d18c2f49e.PNG" alt="electron-inst" style="max-width: 100%;"></a></p>

<ul dir="auto">
<li>Electron version: 1.4.6</li>
<li>Operating system: Windows 10 v1607, node 7.1.0</li>
</ul>
<h3 dir="auto">Expected behavior</h3>

<h3 dir="auto">Actual behavior</h3>
<p dir="auto"><code class="notranslate">npm install electron</code> (global <code class="notranslate">-g</code> install or local) fail. Other npm packages install successfully</p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; node install.js

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: write EINVAL
    at exports._errnoException (util.js:1022:11)
    at WriteStream.Socket._writeGeneric (net.js:715:26)
    at WriteStream.Socket._write (net.js:734:8)
    at doWrite (_stream_writable.js:334:12)
    at writeOrBuffer (_stream_writable.js:320:5)
    at WriteStream.Writable.write (_stream_writable.js:247:11)
    at WriteStream.Socket.write (net.js:661:40)
    at WriteStream.stream.write (C:\Users\Peter\Desktop\Workspace\node_modules\single-line-log\index.js:12:16)
    at process.&lt;anonymous&gt; (C:\Users\Peter\Desktop\Workspace\node_modules\single-line-log\index.js:17:29)
    at emitOne (events.js:101:20)"><pre class="notranslate"><code class="notranslate">&gt; node install.js

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: write EINVAL
    at exports._errnoException (util.js:1022:11)
    at WriteStream.Socket._writeGeneric (net.js:715:26)
    at WriteStream.Socket._write (net.js:734:8)
    at doWrite (_stream_writable.js:334:12)
    at writeOrBuffer (_stream_writable.js:320:5)
    at WriteStream.Writable.write (_stream_writable.js:247:11)
    at WriteStream.Socket.write (net.js:661:40)
    at WriteStream.stream.write (C:\Users\Peter\Desktop\Workspace\node_modules\single-line-log\index.js:12:16)
    at process.&lt;anonymous&gt; (C:\Users\Peter\Desktop\Workspace\node_modules\single-line-log\index.js:17:29)
    at emitOne (events.js:101:20)
</code></pre></div>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto"><code class="notranslate">npm install electron</code></p>