OS: win 10 Node.js : v12.18.3 electron: v10.1.1
print version from js program: process.versions.node 12.16.3 process.versions.modules 82
install serialpor
I had the same issue this morning. With over 5 hours of troubleshooting the only thing that worked for me was to downgrade electron-rebuild to v2.0.1. I am using node v14.9.0(latest), electron v10.1.1(latest), serialport v9.0.1(latest)
Looks like they have an issue open: https://github.com/electron/electron-rebuild/issues/404
i had the same problem. Finally, i can solve this with some steps. Here they are.
npm install --save-dev electron-rebuild
./node_modules/.bin/electron-rebuild
.\node_modules\.bin\electron-rebuild.cmd
"rebuild": "electron-rebuild -f -w serialport"
npm run rebuild
I hope it will help you. have a nice day.