我按照Electron Forge 页面安装了 Electron 的模板。
\nnpx create-electron-app my-new-app --template=typescript-webpack\nRun Code Online (Sandbox Code Playgroud)\n之后,我跑
\nnpm run start\nRun Code Online (Sandbox Code Playgroud)\ninsidesmy-new-app文件夹,命令窗口中弹出以下错误消息
$ npm run start\n\n> my-new-app@1.0.0 start\n> electron-forge start\n\n\xe2\x9c\x94 Checking your system\n\xe2\x9c\x94 Locating Application\n\nAn unhandled rejection has occurred inside Forge:\nError: Expected plugin to either be a plugin instance or a { name, config } object but found @electron-forge/plugin-webpack,[object Object]\n\nElectron Forge was terminated. Location:\n{}\nRun Code Online (Sandbox Code Playgroud)\n我用 Google 搜索,但没有人遇到相同的错误。\n一周前我可以使用上面的模板而不会出现错误消息。因此,我复制了一周前制作的项目并运行。这是成功的。但是,我运行以下命令
\nnpm audit\nRun Code Online (Sandbox Code Playgroud)\n有 22 个漏洞(3 个中等,19 个高)。\n错误是
\ngot <11.8.5 …Run Code Online (Sandbox Code Playgroud)