Windows Error: "EPERM: operation not permitted, lstat"

See original GitHub issue

Dear All,

We are trying to package our electron application for win32 platform .

Steps that we have already followed:

  1. 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
ZhoDicommented, Dec 7, 2019

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 line electron_mirror=https://cdn.npm.taobao.org/dist/electron/

7reactions
youyinnncommented, Nov 16, 2019

+1 i am so depressed because of this problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

EPERM: operation not permitted, lstat when running ng build
This can be a permission problem so you need to run Command Prompt as Admin. a. Press win to open the start menu....
Read more >
Error: EPERM: operation not permitted, lstat 'D:\reactnative\ ...
This is a permissions issue. Just open your VS Code (or whatever you use) with Administrator privileges, or use your company option for...
Read more >
npm ERR! Error: EPERM: operation not permitted [Solved]
To solve the error npm ERR! Error: EPERM: operation not permitted, close your IDE (e.g. Visual Studio Code) and stop your development server....
Read more >
Failed find: EPERM: operation not permitted, lstat 'D:\System ...
I am trying to copy a file from one folder to another folder in a server using azure pipelines but getting this error:...
Read more >
Problems with the developer toolkit / API designer - Forums
glob error { Error: EPERM: operation not permitted, scandir 'C:\Documents and Se ... I also had the same problem when installing the Toolkit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found