This isn’t directly Mender related, but it is blocking using Mender for our application so I thought I might ask if anyone had seen this before, or know where the best place would be to go for help…
I’m building the raspberrypi0-wifi image from meta-raspberrypi, using the instructions in Raspberry Pi 0 Wifi
I used devtool to generate an NPM recipe to install the firebase package:
devtool add "npm://registry.npmjs.org;name=firebase;version=5.9.2"
I needed to add
RDEPENDS_node-firebase_append = " bash"
to the recipe because an included utility was looking for the bash shell.
On the Raspberry Pi, when I require firebase in Node:
> require('firebase')
Error: Failed to load gRPC binary module because it was not installed
for the current system
Expected directory: node-v57-linux-arm-unknown
Found: [node-v57-linux-arm-glibc]
This problem can often be fixed by running "npm rebuild" on the current system
Original error: Cannot find module
'/usr/lib/node/firebase/node_modules/grpc/src/node/extension_binary/node-v57-linux-arm-unknown/grpc_node.node'
On the target system,
/usr/lib/node/firebase/node_modules/grpc/src/node/extension_binary
does contain node-v57-linux-arm-glibc
Any ideas on what I could try?
Thanks!
Andrew