Botframework-emulator: node_modules\electron\dist\electron.exe ENOENT error

Created on 21 Mar 2017  ·  10Comments  ·  Source: microsoft/BotFramework-Emulator

Hi Team,

After installing all the node modules, after built process using gulp when we run npm run start we get the below error.

But the electron.cmd file exits in node_modules.bin folder. Please let us know how we could fix this issue.

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

Error: spawn C:\Users**\AzureBots\BotFramework-Emulatornode_modules\electron\dist\electron.exe ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Module.runMain (module.js:606:11)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3

Best Regards,
Giri

Most helpful comment

I went into the same problem and solve it by removing whole node_modules folder and run npm install from scratch.

All 10 comments

Where any errors reported during npm install?

No there were no errors during npm install.

Does this file exist?
C:\Users******\AzureBots\BotFramework-Emulator\node_modules\electron\dist\electron.exe

No this file does not exists in this location. But the file is present in C:\Users**\AzureBots\BotFramework-Emulatornode_modules.bin folder.

Hm, it might be working for me because I have electron installed at the global scope. Try running this command: .\node_modules\.bin\electron.cmd .

Or even: .\node_modules\.bin\electron . (should work on all platforms)

Any luck?

Closing due to no response. @Girimurugan If you're still having problems please open a new issue. Cheers.

I went into the same problem and solve it by removing whole node_modules folder and run npm install from scratch.

If anyone else comes across this issue, if you're missing the dist/electron.exe folder, delete

  • node_modules/electron

and if you're using yarn then run yarn --check-files

A bit faster than rebuilding the whole folder.

Was this page helpful?
0 / 5 - 0 ratings