@H_502_0@如果你的 electron 或 electron-prebuilt 已经安装为本地项目依赖项:
./node_modules/.bin/electron --interactive
@H_502_0@如果你的 electron 或 electron-prebuilt 已经为全局方式安装:
electron --interactive
@H_502_0@这里只会为主进程创建一个REPL。 您可以使用 Dev Tools 的“控制台”选项卡来为渲染器进程获取一个REPL。@H_502_0@注意: electron --interactive 在 Windows 上不可用.@H_502_0@更多的内容可以在这里找到 Node.js REPL docs.@H_502_0@