Workaround:
- start installer normally with
npm install electron
, installation fails with EPERM error, but createsnode_modules
folder - create folder
\dist
innode_modules\electron
- download release package directly from https://github.com/electron/electron/releases
- unzip release package to
node_modules\electron\dist
- create
path.txt
innode_modules\electron
directory, add text:electron.exe
From this point it should work. If you re-run the installer the dist folder and path.txt will be deleted.