侧边栏壁纸
  • 累计撰写 106 篇文章
  • 累计创建 3 个标签
  • 累计收到 19 条评论
标签搜索

目 录CONTENT

文章目录

electron打包报错

卑微幻想家
2022-05-19 / 0 评论 / 0 点赞 / 183 阅读 / 1,104 字 / 正在检测是否收录...
温馨提示:
本文最后更新于 2022-05-19,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。
E:\electronDir\chapter1>yarn run make
yarn run v1.22.17
$ 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:
���ڳ��Դӡ�chapter1.nuspec�����ɳ������
Authors is required.
Description is required.

Error: Failed with exit code: 1
Output:
���ڳ��Դӡ�chapter1.nuspec�����ɳ������
Authors is required.
Description is required.

    at ChildProcess.<anonymous> (E:\electronDir\chapter1\node_modules\electron-winstaller\src\spawn-promise.ts:52:16)
    at ChildProcess.emit (node:events:390:28)
    at ChildProcess.emit (node:domain:475:12)
    at maybeClose (node:internal/child_process:1064:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

解决办法:

在package.json中,author,description字段不能为空。

0

评论区