【发布时间】:2016-01-16 12:57:26
【问题描述】:
我使用 npm 安装了“electron-packager”并执行了命令
electron-packager . Johnston --platform=darwin --arch=x64 --version=0.36.0
然后当我运行“Johnston.app”时,出现了这个错误(我什至没有看到主窗口)
未捕获的异常:错误:找不到模块“电子” 在 Function.Module._resolveFilename (module.js:332:15) 在 Function.Module._load (module.js:282:25) 在 Module.require (module.js:361:17) 在需要 (module.js:380:17) 在对象。 (/Users/David/Github/Johnston/Johnston-darwin-x64/Johnston.app/Contents/Resources/app/main.js:3:18) 在 Module._compile (module.js:426:26) 在 Object.Module._extensions..js (module.js:444:10) 在 Module.load (module.js:351:32) 在 Function.Module._load (module.js:306:12) 在对象。 (/Users/David/Github/Johnston/Johnston-darwin-x64/Johnston.app/Contents/Resources/atom.asar/browser/lib/init.js:104:10)
有什么解决办法吗?谢谢!
【问题讨论】:
标签: javascript node.js macos github electron