electron启动报Electron failed to install correctly,

报错详情

1
2
.pnpm\electron@27.1.0\node_modules\electron\index.js:17
throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again');

解决方式

node node_modules/electron/install.js