Windows Error: "EPERM: operation not permitted, lstat"
See original GitHub issueDear All,
We are trying to package our electron application for win32 platform .
Steps that we have already followed:
- Using electron-packager we tried to build the .exe file of our application but we ran into the lstat error.
so I have logged the issue under electron-packager https://github.com/electron/electron-packager/issues/1064
Form there I was advised to download the binary files using electron/get 2) We downloaded the electron/get module and tried running the simple js file to download binary files but facing the same issue : Error: EPERM: operation not permitted, lstat ‘C:\Users\arun\AppData\Local\Temp\electron-download-nY2x6M\electron-v6.0.7-win32-x64.zip’
Even after setting cache folder as electon_cache=C:\Users\ath6cob\AppData\Local\electron\Cache in environment variable the download creates random temp folder whenever i run the command.
I am a beginner but it is really becoming difficult to build an exe file.
Please advise
`Arun
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:13 (1 by maintainers)
Top GitHub Comments
I had the same problem.Not even the administrator. At first, I solved him by
cnpm install -g electron
Finally find Alter File ~/.npmrc Add a lineelectron_mirror=https://cdn.npm.taobao.org/dist/electron/
+1 i am so depressed because of this problem