mathiask88 / node-snap7

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

Module version mismatch #35

Closed hillcz closed 6 years ago

hillcz commented 6 years ago

Hi If i try SNAP7 on LTS node 6.10.2 I have err. message Module version mismatch. Expected 47, got 48. Can you fix it ? THX

mathiask88 commented 6 years ago

Did you change your node version or is this a fresh installation? If you change major node versions you always have to npm rebuild.

gustavo-oliveira-mendonca commented 6 years ago

Are you using it with electron? If so, you can install the electron-rebuild package and add this script on package.json : "postinstall": "electron-rebuild"

hillcz commented 6 years ago

Nodejs was preinstaled by myscada app. node-snap7 I am installing by nmp install

mathiask88 commented 6 years ago

@hillcz If I can't reproduce this, I can only guess what your issue is. I think it is not an issue with node-snap7 itself but with your environment you are installing. Did you solve it?

hillcz commented 6 years ago

Yes I fixed it. I dont know why, but NTP VERSION return me NODE 6.10.2 and i have instaled 5.4.1. Now it is working. Thanks for perfect module. Sorry for fake issue and my horible english .