Open ghost opened 7 years ago
Hi @soldirered, having both the opkg & npm versions on the same system is bound to break/cause issues. I would remove MRAA/UPM completely and then install the opkg version. If that doesn't work with the version of node on the board, you can try building our libraries from source with cmake. It's pretty straightforward. The npm packages work ok for MRAA, but UPM needs a bit more tweaking.
Hi @Propanu, thank you for the answer. I will try that out as soon as I can.
I am running a Siemens IoT2040 (which is basically a Galileo Gen 2) and Yocto Linux from the image provided by Siemens. It came with Node.js 6.9.2, MRAA 1.5.1 and UPM 1.0.0 I upgraded MRAA and UPM to the most recent versions (1.7.0 and 1.3.0 respectively) via opkg and also with npm for the node bindings (npm also compiled everything again with node-gyp). Node.js is still at 6.9.2 (because it has been baked into the image and I don't want to create an image myself with bitbake)
However when I try to run my own code using a UPM library (or using one of the examples provided in the repository) I get a version mismatch. And code with MRAA functions runs just fine. Which kind of irritates me because everything has been rebuild by npm.
The error message:
And the code itself:
Any ideas?