Trouble installing node-red-contrib-tf-model

hello. before i start, here are my versions:
Node-RED version: v4.0.9
Node.js version: v22.12.0

long story short, i've installed node-red-contrib-tf-model using their guide in

it required a tensorflow/tfjs-node
picture of tensorflow/tfjs-node installation:

i then proceeded to install the node from node-red itself as instructed. However, the terminal gives me this error:


It also displays an error in node-red itself under the node:

  • ERR_DLOPEN_FAILED
    when i check, this tfjs_binding.node is indeed present in all its glory.

I've tried everything from cleaning cache, downgrading node.js (from 22 to 20, to 19, to 18), and reinstalling it multiple times.
I even attempted to change it from tfjs-node to just tfjs in the package.json and index.js, but as you can imagine, that didnt work.

I am all out of options here. please provide help for a poor soul.

Hi. Welcome to the forum.

If you simply search the error text from the console "Error: The specified module could not be found" "\tfjs-node\lib\napi-v8\tfjs_binding.node" on the web, it would have lead you to this thread: [Windows] Error: The specified module could not be found. node_modules\@tensorflow\tfjs-node\lib\napi-v6\tfjs_binding.node · Issue #4116 · tensorflow/tfjs · GitHub

It looks promising?

Ps, please post logs as text in future. Images are hard to read and are not searchable.

1 Like