<blockquote>
<p dir="auto">electron@1.6.10 postinstall G:\nodejs\electron app\sqljs\node_modules\electron<br>
node install.js</p>
</blockquote>
<p dir="auto">Downloading electron-v1.6.10-win32-x64.zip<br>
Error: read ECONNRESET<br>
G:\nodejs\electron app\sqljs\node_modules\electron\install.js:47<br>
throw err<br>
^</p>
<p dir="auto">Error: read ECONNRESET<br>
at exports._errnoException (util.js:1018:11)<br>
at TLSWrap.onread (net.js:568:26)<br>
npm verb lifecycle electron@1.6.10<del>postinstall: unsafe-perm in lifecycle true<br>
npm verb lifecycle electron@1.6.10</del>postinstall: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;G:\nodejs\electron app\sqljs\node_modules\electron\node_modules.bin;G:\nodejs\electron app\sqljs\node_modules.bin;C:\Users\bear\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\cmd;C:\Users\bear\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\usr\bin;C:\Users\bear\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\usr\share\git-tfs;C:\Users\bear\AppData\Local\Apps\2.0\LQWXNEMJ.2HO\4X297WEN.TB2\gith..tion_317444273a93ac29_0003.0003_5794af8169eeff14;C:\Users\bear\AppData\Local\GitHub\lfs-amd64_1.5.5;c:\Software\octave3.6.4\bin;C:\Program Files (x86)\Qucs\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files\Lenovo\Bluetooth Software;C:\Program Files\Lenovo\Bluetooth Software\syswow64;C:\Program Files\Broadcom\WHL;C:\Program Files\Broadcom\WHL\syswow64;C:\Program Files\Broadcom\WHL\SysWow64;C:\Program Files\Broadcom\WHL\SysWow64\syswow64;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn;C:\Program Files\Internet Explorer;C:\Program Files (x86)\Common Files\GTK\2.0\bin;C:\Program Files (x86)\Java\jdk1.8.0_111\bin;G:\AndroidSDK\tools\templates\gradle\wrapper;C:\ant\bin;C:\android-sdk-win\tools;C:\android-sdk-win\platform-tools;C:\Program Files (x86)\mingw32\bin;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;G:\AndroidSDK\tools;G:\AndroidSDK\platform-tools;C:\Program Files (x86)\Skype\Phone;C:\Program Files (x86)\Brackets\command;C:\Program Files\nodejs;C:\Users\bear\AppData\Local\Microsoft\WindowsApps;G:\web\xampp\php;C:\Users\bear\AppData\Roaming\npm;C:\Program Files (x86)\MSBuild\14.0\bin<br>
npm verb lifecycle electron@1.6.10<del>postinstall: CWD: G:\nodejs\electron app\sqljs\node_modules\electron<br>
npm info lifecycle electron@1.6.10</del>postinstall: Failed to exec postinstall script<br>
npm verb unlock done using C:\Users\bear\AppData\Roaming\npm-cache_locks\staging-0c641607ed835d70.lock for G:\nodejs\electron app\sqljs\node_modules.staging<br>
npm WARN sqljs@1.0.0 No repository field.<br>
npm verb<br>
npm verb If you need help, you may report this error at:<br>
npm verb     <a href="https://github.com/npm/npm/issues">https://github.com/npm/npm/issues</a><br>
npm verb stack Error: electron@1.6.10 postinstall: <code class="notranslate">node install.js</code><br>
npm verb stack Exit status 1<br>
npm verb stack     at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)<br>
npm verb stack     at emitTwo (events.js:106:13)<br>
npm verb stack     at EventEmitter.emit (events.js:191:7)<br>
npm verb stack     at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)<br>
npm verb stack     at emitTwo (events.js:106:13)<br>
npm verb stack     at ChildProcess.emit (events.js:191:7)<br>
npm verb stack     at maybeClose (internal/child_process.js:886:16)<br>
npm verb stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)<br>
npm verb pkgid electron@1.6.10<br>
npm verb cwd G:\nodejs\electron app\sqljs<br>
npm ERR! Windows_NT 10.0.14393<br>
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "--save-dev" "electron" "--verbose"<br>
npm ERR! node v6.10.3<br>
npm ERR! npm  v3.10.10<br>
npm ERR! code ELIFECYCLE</p>
<p dir="auto">npm ERR! electron@1.6.10 postinstall: <code class="notranslate">node install.js</code><br>
npm ERR! Exit status 1<br>
npm ERR!<br>
npm ERR! Failed at the electron@1.6.10 postinstall script 'node install.js'.<br>
npm ERR! Make sure you have the latest version of node.js and npm installed.<br>
npm ERR! If you do, this is most likely a problem with the electron package,<br>
npm ERR! not with npm itself.<br>
npm ERR! Tell the author that this fails on your system:<br>
npm ERR!     node install.js<br>
npm ERR! You can get information on how to open an issue for this project with:<br>
npm ERR!     npm bugs electron<br>
npm ERR! Or if that isn't available, you can get their info via:<br>
npm ERR!     npm owner ls electron<br>
npm ERR! There is likely additional logging output above.<br>
npm verb exit [ 1, true ]</p>
<p dir="auto">npm ERR! Please include the following file with any support request:<br>
npm ERR!     G:\nodejs\electron app\sqljs\npm-debug.log</p>
<p dir="auto">G:\nodejs\electron app\sqljs&gt; node --version<br>
v6.10.3</p>
<ul dir="auto">
<li>electron@1.6.6</li>
<li>Windows 10</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Installation with angular 4</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Error on Post Install script</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">ng new project<br>
cd project<br>
npm install --save-dev electron</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="D:\electron\project1\node_modules\electron\install.js:47
  throw err
  ^
Error: read ECONNRESET
    at exports._errnoException (util.js:1050:11)
    at TLSWrap.onread (net.js:581:26)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {&quot;os&quot;:&quot;darwin&quot;,&quot;arch&quot;:&quot;any
&quot;} (current: {&quot;os&quot;:&quot;win32&quot;,&quot;arch&quot;:&quot;x64&quot;})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@1.6.6 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@1.6.6 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! A complete log of this run can be found in:"><pre class="notranslate"><code class="notranslate">D:\electron\project1\node_modules\electron\install.js:47
  throw err
  ^
Error: read ECONNRESET
    at exports._errnoException (util.js:1050:11)
    at TLSWrap.onread (net.js:581:26)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any
"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@1.6.6 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@1.6.6 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! A complete log of this run can be found in:
</code></pre></div>
<p dir="auto">Full debug log <a href="https://gist.github.com/hsrtechs/ca939599fda9db2beaa8e3b04d675364">https://gist.github.com/hsrtechs/ca939599fda9db2beaa8e3b04d675364</a></p>