electron-connect icon indicating copy to clipboard operation
electron-connect copied to clipboard

Error: spawn electron ENOENT when running gulp serve

Open divramod opened this issue 8 years ago • 6 comments

Hey, i get the following error when running gulp serve:

[22:28:13] Starting 'serve'...
[22:28:13] Finished 'serve' after 4.6 ms
[2016-11-15T21:28:13.505Z] [electron-connect] [server] started electron process: undefined
[2016-11-15T21:28:13.506Z] [electron-connect] [server] created and listening on 30080
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: spawn electron ENOENT
    at exports._errnoException (util.js:856:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
    at onErrorNT (internal/child_process.js:344:16)
    at nextTickCallbackWith2Args (node.js:478:9)
    at process._tickCallback (node.js:392:17)
    at Function.Module.runMain (module.js:432:11)
    at startup (node.js:141:18)
    at node.js:1003:3

i am running ubuntu, node v5.4.0, gulp 3.9.1, npm 4.0.1

can someone help me out here?

divramod avatar Nov 15 '16 21:11 divramod

+1 Same error...any idea?

lcaprini avatar Nov 19 '16 11:11 lcaprini

i removed electron from node_modules and installed it globally. now it is running

divramod avatar Nov 21 '16 17:11 divramod

I uninstalled electron-prebuilt to make it work.

sommereder avatar Nov 23 '16 13:11 sommereder

I got same error. I removed all from node_modules and reinstalled.

$ rm -rf node_modules
$ npm install

Althrough I couldn't find direct cause, work correctly now.

zecoo89 avatar Dec 12 '16 11:12 zecoo89

Same issue here.

rico345100 avatar Jan 18 '17 14:01 rico345100

I've been two days stuck with this.. No clue wat can it be

uriylla avatar Jan 25 '17 00:01 uriylla