How to use the --interactive option of electron?



I have seen that starting from V0.37.3, there is a --interactive option that runs a repl in the server when you start electron.

I have tried this from a Windows7 shell, it launches electron but no repl in the shell.

Do you know how to use this option?

Thank you.


Nobody knows? Really?

./node_modules/.bin/electron --interactive

> process.versions
{ http_parser: '2.6.2',
  node: '5.10.0',
  v8: '4.9.385.28',
  uv: '1.8.0',
  zlib: '1.2.8',
  ares: '1.10.1-DEV',
  modules: '47',
  openssl: '1.0.2g',
  electron: '0.37.7',
  'atom-shell': '0.37.7',
  chrome: '49.0.2623.75' }

> require('electron').BrowserWindow
{ [Function: BrowserWindow]
  fromId: [Function],
  getAllWindows: [Function],
  getFocusedWindow: [Function],
  fromWebContents: [Function],
  fromDevToolsWebContents: [Function],
  addDevToolsExtension: [Function],
  removeDevToolsExtension: [Function] }


Thank you, at least it works somewhere.

Looking more carefully, after launching electron I see the caret prompt like in you sample, but electron exits immediately and I’m back in the windows shell.

Using electron without argument works normally. Any Idea?