Skip to content

Electron crashes on npm run dev with node version mismatch for @serialport #121

Answered by mirestrepo
mirestrepo asked this question in Q&A
Discussion options

You must be logged in to vote

This StackOverflow post helped. In particular, this instructions helped

  • Run npm i -D electron-rebuild to add the electron-rebuild package
  • Remove the node-modules folder, as well as the packages-lock.json file.
  • Run npm i to install all modules.
  • Run ./node_modules/.bin/electron-rebuild (.\node_modules\.bin\electron-rebuild.cmd for Windows) to rebuild everything

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RobertGemmaJr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant