node install.js

Created on 10 Apr 2017  路  4Comments  路  Source: nodejs/node

  • Version: v7.8.0
  • Platform: 64-bit (Windows 10)


Hi,
I'm trying to install Electron on Windows 10 using Windows CMD. When I enter the following command:

npm install electron-prebuilt --save-dev

it works fine till it comes to "node install.js" then it hangs for a long time then outputs the following list of errors:

D:\CS_Projects\lnl\node_modules\electron-prebuilt\install.js:22
  throw err
  ^

Error: read ECONNRESET
    at exports._errnoException (util.js:1034:11)
    at TLSWrap.onread (net.js:580:26)
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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-prebuilt 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-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls electron-prebuilt
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\mghon\AppData\Roaming\npm-cache\_logs\2017-04-10T00_54_08_806Z-debug.log

D:\CS_Projects\lnl>

I tried to solve it but I haven't come to any solution. Please help me.
Thanks!

invalid

Most helpful comment

Maybe it would be better to report this issue in https://github.com/electron-userland/electron-prebuilt

All 4 comments

Maybe it would be better to report this issue in https://github.com/electron-userland/electron-prebuilt

Error: read ECONNRESET
    at exports._errnoException (util.js:1034:11)
    at TLSWrap.onread (net.js:580:26)

Seems like you have network connectivity issues.
Also you could take a look at

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\mghon\AppData\Roaming\npm-cache\_logs\2017-04-10T00_54_08_806Z-debug.log

You might find what's the failing URL

I solved it! I just downgraded node.js to v6.1.0 and it worked fine! Thanks! :)

Was this page helpful?
0 / 5 - 0 ratings