Closed ghost closed 9 years ago
I tried solving this problem by using meteor package https://atmospherejs.com/donaldaverill/serialport but ended up having exact same error, later I found out that by downgrading nodejs version 0.12.7 -> 0.10.36 I was able to resolve this issue, thus I guess this error is noway related to this package.
I am using "serialport": "1.7.4" npm package inside my project, everything seems to be working fine. inside my packages.json I have { "serialport": "1.7.4" } meteor build. also completes without any errors.
then inside generated bundle directory I install npm modules cd path/to/bundle/programs/server && npm install
but when running "node main.js" I get this error:
Error: Cannot find module '/path/to/bundle/programs/server/npm/npm-container/node_modules/serialport/build/serialport/v1.7.4/Release/node-v14-linux-x64/serialport.node'