0

I need serialport to work with node-webkit. I already have serialport.node but I don't know how to make it work. I always get the same error: "Uncaught error: Cannot find module serialport" and tried it in versions 0.6.3 and 0.5.0. Thank you!

jamesmortensen
  • 33,636
  • 11
  • 99
  • 120

2 Answers2

0

node-webkit support all the nodejs apis and all its third party modules.
so you can get serialport from serialport just like other packages of nodejs, and follow the instructions the page said. it should work fine after you install serialport.

If something is wrong with the version of your serialport.node, you can see the issue, someone has compiled it successfully. You may want to try it.

richard
  • 742
  • 2
  • 9
  • 21
0

You will need to build it with nw-gyp.

Justin
  • 663
  • 7
  • 19