我用电子锻造创建了一个默认项目。当我尝试使用 command 打包我的项目时electron-forge
,进程退出并出现以下错误。
我究竟做错了什么?我按照说明在electron-forge找到了一个发球台。
$ electron-forge package
✔ Checking your system
✔ Preparing to Package Application for arch: x64
✔ Compiling Application
✔ Preparing native dependencies
⠦ Packaging Application
An unhandled rejection has occurred inside Forge:
Command failed: npm prune --production
npm WARN electron-example@1.0.0 No repository field.
npm ERR! May not delete: /tmp/electron-packager/linux-x64/electron-example-linux-x64/resources/app/node_modules/.bin
npm ERR! A complete log of this run can be found in:
npm ERR! /home/maxchehab/.npm/_logs/2017-07-21T04_40_37_618Z-debug.log
Error: Command failed: npm prune --production
npm WARN electron-example@1.0.0 No repository field.
npm ERR! May not delete: /tmp/electron-packager/linux-x64/electron-example-linux-x64/resources/app/node_modules/.bin
npm ERR! A complete log of this run can be found in:
npm ERR! /home/maxchehab/.npm/_logs/2017-07-21T04_40_37_618Z-debug.log
at ChildProcess.exithandler (child_process.js:270:12)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:921:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
感谢您的时间。