When running npm run package
, I got the following error:
An unhandled rejection has occurred inside Forge:
[Error: EBUSY: resource busy or locked, rmdir 'D:\Repos\app\out\app-win32-x64'] {
errno: -4082,
code: 'EBUSY',
syscall: 'rmdir',
path: 'D:\\Repos\\app\\out\\app-win32-x64'
}
Electron Forge was terminated. Location:
{}
What is causing this error, and how to solve it?
CodePudding user response:
Perhaps you forgot to call app.quit()
and app.exe
is still running in the background, kill all instances of app.exe
then retry, the error should be gone.