【发布时间】:2016-03-05 22:36:16
【问题描述】:
我在使用 Electron 时遇到问题,无法在 Windows、Mac 上运行构建版本
主进程发生 Javascript 错误
Uncaught Exception:
Error: Cannot find module 'electron'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Users/fabuy/lab/tilo-desktop/releases/tilo-desktop-darwin-x64/tilo-desktop.app/Contents/Resources/app/main.js:3:18)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Object.<anonymous> (/Users/fabuy/lab/tilo-desktop/releases/tilo-desktop-darwin-x64/tilo-desktop.app/Contents/Resources/atom.asar/browser/lib/init.js:123:10)
【问题讨论】:
标签: electron atom-editor