electron-builder报错errorOut=Fatal error: Unable to commit changes


字数:262 阅读时长:1分钟 阅读:85

在 electron 项目中,使用 electron-builder 打包报错:⨯ cannot execute cause=exit status 1 errorOut=Fatal error: Unable to commit changes

electron-builder

完整报错信息

1
2
3
4
5
6
7
8
9
10
11
12
13
  • building block map  blockMapFile=dist\net-stats-1.0.0-setup.exe.blockmap
⨯ cannot execute cause=exit status 1
errorOut=Fatal error: Unable to commit changes

command='C:\Users\demo\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.6.0\rcedit-x64.exe' 'D:\project\net-sta
ts\dist\squirrel-windows\Net Stats Setup 1.0.0.exe' --set-version-string FileDescription 'Net Stats' --set-version-string ProductName 'Net Stat
s' --set-version-string LegalCopyright 'Copyright © 2023 example.com' --set-file-version 1.0.0 --set-product-version 1.0.0.0 --set-version-stri
ng CompanyName example.com --set-icon 'D:\project\net-stats\resources\logo.ico'
errorOut=Fatal error: Unable to commit changes

command='C:\Users\demo\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.6.0\rcedit-x64.exe' 'D:\project\net-sta
ts\dist\squirrel-windows\Net Stats Setup 1.0.0.exe' --set-version-string FileDescription 'Net Stats' --set-version-string ProductName 'Net Stat
• Above command failed, retrying 2 more times

解决办法

关闭相关杀毒软件,如:360、电脑管家 等等,再次执行打包程序就不会出现以上错误提示了。


欢迎访问:天问博客

本文作者: Tiven
发布时间: 2023-01-19
最后更新: 2023-07-17
本文标题: electron-builder报错errorOut=Fatal error: Unable to commit changes
本文链接: https://www.tiven.cn/p/abab1034/
版权声明: 本作品采用 CC BY-NC-SA 4.0 许可协议进行许可。转载请注明出处!
欢迎留言,提问 ^_^
个人邮箱: tw.email@qq.com
notification icon
博客有更新,将会发送通知给您!