Microsoft Windows [Version 10.0.16299.125] (c) 2017 Microsoft Corporation. All rights reserved.
D:\\nodejs projects\\New>npm update electron
electron@1.8.1 postinstall D:\\nodejs projects\\New\\node_modules\\electron node install.js
I have this error when I start the project:
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
The comment from @illiteratewriter did the trick:
Remove electron and add it again using the following commands:
npm uninstall electron
npm install electron
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.