Ich habe ein Standard-Projekt mit der Elektronenschmiede erstellt. Wenn ich versuche, mein Projekt mit dem Befehl electron-forge
zu packen, wird der Prozess mit dem folgenden Fehler beendet.Kann nicht mit Elektron-Packager innerhalb der Elektronenschmiede
Was mache ich falsch? Ich folgte den Anweisungen zu einem Tee bei 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 [email protected] 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 [email protected] 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)
Vielen Dank für Ihre Zeit.
Neue akzeptierte Antwort. Vielen Dank. –