-
Notifications
You must be signed in to change notification settings - Fork 16k
electron always "Electron failed to install correctly, please delete node_modules/electron and try installing again" #20731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have the same problem,but electron 6 works well in my computer |
It happened to me, too. |
The path.txt is missing. I have the same problem and I run the install.js many times. It seems that function 'downloadArtifact' took so much time that it failed to create path.txt. https://github.com/electron/electron/blob/master/npm/install.js#L31 |
Yes,It causes this problem,but I failed to download |
Got totally same error..... |
i made it!
|
@lutianxiong thank you, that actually worked. To clarify for anyone else following your instructions, add a step "3.5" where you add the downloaded Electron .zip to C:\Users\XXXX\AppData\Roaming\npm\node_modules\electron |
Why its linux version? is it a typo? |
Is an actual fix for this in the pipeline? It would be nice for the actual issue to be resolved - instead of just work-arounds. I just tried to install Electron this morning, and I got the same error when trying to run Electron |
Actually the |
I have this problem with the 8.0.0 release, after upgrading electron from 6.1. I am running on a Windows 10 machine and have tried both npm and yarn. The path.txt file is not present in the electron folder, and there is no I have two government projects in strict automated environments where packages referenced just need to work. The approach of issuing commands, manually copying files around from older versions etc just isn't a practical solution of any kind for me. Is the only official supported workaround for this problem to revert to an older 7.x version? Or is there an 8.0.1 update coming that addresses this, and if so, what is the timeline on that? |
I download the zip from the taobao mirror, and move the zip to |
My english is poor, hope i can help you |
This is probably not relevant for anyone on this thread, but just in case: I was getting 'Electron failed to install correctly, please...', and tried downgrading/upgrading electron, removing node_modules, removing ~/.cache/electron, running electron-fix, ... nothing worked. Turned out the issue was that I had
in webpack.config.js. Changing that to
fixed it. Not the most enlightning error message I've come across. |
I was on |
This worked for me! Thanks! |
The Electron version reported on this issue is no longer supported. See our supported versions documentation. If this is still reproducible on a supported version, please open a new issue with any other new information that a maintainer should know. Thank you for taking the time to report this issue and helping to make Electron better! Your help is appreciated. |
Electron installation can fail silently triggering errors later when trying to make use of it. As suggested in a comment (see electron/electron#20731 (comment)), manually launching the installation seems to do the trick.
The text was updated successfully, but these errors were encountered: