mathiask88 / node-snap7

node.js wrapper for snap7
MIT License
162 stars 59 forks source link

unable to run empty electron-starter project with example node-snap7 code #15

Closed sabinin closed 8 years ago

sabinin commented 8 years ago

version of node 0.9.9 http://prntscr.com/b1z2te - printscreen of error

please tell me what i`m doing wrong ? :)

mathiask88 commented 8 years ago

I don't have much experience with electron. Did you follow this guide to build the native modules?

sabinin commented 8 years ago

Thanks for notice, will try it.

sabinin commented 8 years ago

Hi, can you write please a version of node which snap7 does currently support ?

mathiask88 commented 8 years ago

0.8, 0.10, 0.12, 3, 4, 5 and in some days 6 also.

mathiask88 commented 8 years ago

I released a new version that supports node v6.x. Now you should be able to run newest electron starter if you npm install and then electron-rebuild.

sabinin commented 8 years ago

Thanks a lot, will try it today!

mathiask88 commented 8 years ago

I tried it myself and it works, but I had to use .\node_modules\.bin\electron-rebuild.cmd -f on my windows machine to force electron-rebuild to rebuild the dependencies. I don't know why it skips some modules otherwise. I will close for now. If you have any questions left feel free to ask.