electron App
Installing modules and rebuilding for Electron You can also choose to install modules like other Node projects, and then rebuild the modules for Electron with the electron-rebuild package. This module can get the version of Electron and handle the manual steps of downloading headers and building native modules for your app.
npm install --save-dev electron-rebuild
./node_modules/.bin/electron-rebuild
.\node_modules\.bin\electron-rebuild.cmd