无法开始使用 Hello World Electron 应用示例

Can't get started with the Hello World Electron app example

我已经完成了 "Your first Electron app" 并遵循了这个和其他教程来开始,但是一旦我使用 npm startnpm run startelectron . 我总是得到我无法理解的错误消息。

我使用的代码是从Writing Your First Electron App | Electron Documentation教程中复制的。

我尝试 运行 node index.js 以获得更好的错误消息,但它对我没有帮助。

我认为最终是编码问题。我使用 TotalEdit Pro 创建我的文件作为 unicode 文件,但 node/electron 似乎需要 UTF-8。现在可以了。