electron / get

Download Electron release artifacts
https://npm.im/@electron/get
MIT License
344 stars 105 forks source link

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

Closed aruntech89 closed 4 years ago

aruntech89 commented 5 years ago

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

craxal commented 5 years ago

I've had the same problem. I'm using @electron/get directly.

aruntech89 commented 5 years ago

Any input please advise.

ivysrono commented 5 years ago

+1

craxal commented 5 years ago

So, I only get this issue on Windows. On a Mac, I get a 404 error. May be related to #125? Now that I know my error was really a 404, I managed to resolve after double-checking a few variables in some scripts for undefined. 🤦‍♂️

siaikin commented 5 years ago

look at this and #123 , hope this felpful.

youyinnn commented 4 years ago

+1 i am so depressed because of this problem

aruntech89 commented 4 years ago

1) Pointed to local mirror and tried building failing in checksum and also 2 )I tried with Admin privilege and still facing the same issue in Windows10

For users behind proxy and in corporate network, Are we missing any parameter or configuration ?

Kindly advise

Arun

youyinnn commented 4 years ago

maybe is something related to your anti-virus application in your machine, try to turn off them and build again?

crazafimahatratra commented 4 years ago

The same issue for me on windows. Works with npm i -D electron@nightly

ZhoDi commented 4 years ago

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/

ivysrono commented 4 years ago

@ZhoDi Great, thanks.

liudonghua123 commented 4 years ago

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/

@ZhoDi Thanks for your tips, it worked for me!

malept commented 4 years ago

As of @electron/get version 1.7.5, the lstat error should not be showing up anymore.