DEV Community

loading...

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again

dnsmnds profile image Dênis Mendes Updated on ・1 min read

Are you stumbling in that error message: Electron failed to install correctly, please delete node_modules/electron and try installing again - So maybe that link https://stackoverflow.com/a/56813379 can help you to solve it.

HEAPS UP! That is going to remove electron from package.json and add again but it's going to add latest version if you want another version you need to add manually electron version into package.json after npm uninstall electron and then run npm install instead of npm install electron.

Discussion (0)

Forem Open with the Forem app