I have a script in my package.json (I am on Win10)
"build-win32": "electron-packager . --electron-version 1.4.15 --platform win32 --icon ./assets/icon.ico --out ./dist --overwrite"
In command prompt I type
npm run build-win32
I get the error: Error: EPERM: operation not permitted, rmdir ...
So the obvious thing to do (to me ) is close command prompt and restart by right clicking and running as admin. I then type in the admin command prompt
npm cache clean
I turn off the admin command prompt and restart a normal command prompt. I try running npm run build-win32
again, but get the same error.
How can I get this working. I have tried npm cache clean
in a non-admin command prompt as well.