[Solved] Electron Error: Error: Electron failed to install correctly, please delete node_modules/electron and try

When building an electron Vue project on win10, an error is reported using the NPM install command
report errors:

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

Solution::

Enter the node_modules/electron directory in the project from the command line and run the node install.js command

Read More: