packager: rcedit.exe failed - unable to commit changes
I’m am using electron-packager 8.5.1 with Electron 1.4.13 (also tried using 1.2.2), attempting to build on Windows 10 for Windows.
I keep getting the following:
λ electron-packager . app --platform=win32 --arch=x64
Packaging app for platform win32 x64 using electron v1.4.13
rcedit.exe failed with exit code 1. Fatal error: Unable to commit changes
While I’m aware that electron-packager comes with rcedit, I’ve downloaded rcedit from the electron/rcedit repos and placed it into my path to ensure I can execute rcedit and it isn’t a pathing issue.
I can’t find much through google or the issues of electron-packager or rcedit, so I was hoping someone would have an idea on what I can do from here.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 48 (12 by maintainers)
Disabling the Antivirus worked for me!
Got the same error:
rcedit.exe failed with exit code 1. Fatal error: Unable to commit changesrcedit.exeto McAfee’s Excluded Files, re-enabled RT Scan and it worked.Hope this helps someone.
Disabling the Antivirus worked for me too!
rcedit.exe failed with exit code 1. Fatal error: Unable to commit changes
禁用掉防病毒软件windows防火墙再打包就ok了!
+1. Build multiple times, and error happens occasionally. Totally don’t know why.
Just wanted to comment that I also encountered this error and rolling back also solved the issue for me. I work with @hlfshell and another, third coworker just ran into this problem, so at this point it’s safe to say this has something to do with our dev setup. Cylance (network antivirus) seems like a likely culprit to me.
Happened to me when using Synology Drive (or probably any sync tool). Workaround: copy the project locally.
For the ones that have the issue while using Windows OS and default antivirus (Defender) the steps below will resolve your issue.
Add an exclusionand pick theProcessrcedit.exeinto the prompt and saveSorry, my mistake. Re-ran:
Same result, I’m afraid.