DEV Community

Dênis Mendes
Dênis Mendes

Posted on • Edited on

1

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

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.

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay