It's been a while when I last successfully packaged a electron-forge application, so I had to repackage due to a icon change. As I tried to run npm run make
OR npm run package
, as the command line was doing all the work, I got a error and terminated the command.
An unhandled rejection has occurred inside Forge:
[Error: EPERM: operation not permitted, rmdir 'C:\Users\Mikey\AppData\Local\Temp\electron-packager\win32-x64\Name_OF_app-win32-x64\resources\app'] {
errno: -4048,
code: 'EPERM',
syscall: 'rmdir',
path: 'C:\\Users\\Mikey\\AppData\\Local\\Temp\\electron-packager\\win32-x64\\Name_OF_app-win32-x64\\resources\\app'
}
Electron Forge was terminated. Location:
{}
I tried running npm cache --force
as well as updating the node and electron-forge to no avail. I doubt if it's anything to do with the config, but I believe it was trying to access a folder for some reason even if I ran as a administrator.
Maybe a permission issue?