1.electron 打包报错
npm run make > electron-forge make ✔ Checking your system ✔ Resolving Forge Config We need to package your application before we can make it ✔ Preparing to Package Application for arch: x64 ✔ Preparing native dependencies ✔ Packaging Application Making for the following targets: squirrel ✖ Making for target: squirrel - On platform: win32 - For arch: x64 An unhandled error has occurred inside Forge: An error occured while making for target: squirrel Failed with exit code: 1 Output: ���ڳ��Դӡ�ele.nuspec�����ɳ������ Authors is required. Error: Failed with exit code: 1 Output: ���ڳ��Դӡ�ele.nuspec�����ɳ������ Authors is required. at ChildProcess.<anonymous> (C:\Users\SEM003\Desktop\ele\node_modules\electron-winstaller\src\spawn-promise.ts:52:16) at ChildProcess.emit (events.js:210:5) at ChildProcess.EventEmitter.emit (domain.js:475:20) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
解决办法:package.json 文件中
author,description 不能为空