require(“electron”).app is undefined. I npm installed fresh modules. Unsure what to do
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Yesterday, I was developing on Electron perfectly fine. Then I hop onto my computer to realize Electron isn't working at all now. I removed node_modules and did a fresh npm install package.json: ... "devDependencies" : { "devtron" : "^1.4.0" , "electron" : "^1.4.7" }, "dependencies" : { "electron-debug" : "^1.1.0" } ... This is the error I got. I followed the suggestions used of previous issues of this problem. Nothing is resolving it. Electron is not installed globally. Everything should be self contained in the directory. npm