[yocto] devtool generated npm recipe building binary package for wrong system

Andrew Wilcox andrew.wilcox at gmail.com
Tue Apr 2 10:43:20 PDT 2019


I used devtool to generate a recipe for installing the Node NPM
package "firebase":

  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 target system, in Node when I require firebase:

> 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

I'm building the raspberrypi0-wifi image from meta-raspberrypi.

Any ideas on what I could try?

Thanks!

Andrew


More information about the yocto mailing list