Unable to install 'node-red-contrib-tf-model' using NPM on windows10x64

724 Views Asked by At

I followed the tutorials below for the installation of the tensorflow model:

Steps taken:

  1. I first installed the @tensorflow/tfjs-node inside Node-RED directly by running the following code:

    C:\Users\username\.node-red\node_modules> npm install @tensorflow/[email protected]
    
  2. Ran npm install under C:\Users\username\.node-red\node_modules\@tensorflow\tfjs-node:

    C:\Users\username\.node-red\node_modules\@tensorflow\tfjs-node> npm install
    
  3. Finally ran npm install node-red-contrib-tf-model in the same directory:

    C:\Users\username\.node-red\node_modules\@tensorflow\tfjs-node> npm install node-red-contrib-tf-model
    

Error that occured:

npm WARN [email protected] requires a peer of @tensorflow/tfjs-node@^1.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN @tensorflow/[email protected] No license field.

I have installed the correct tfjs-node version, and so why does this error occur?

Edit: Tried installing the module straight from Node-RED itself and got the following

ERROR:The specified module could not be found.
C:\Users\username\.node-red\node_modules\@tensorflow\tfjs-node\lib\napi-v6\tfjs_binding.node

When I checked the above directory it turns out that I do have the 'tfjs_binding.node'.

What am I doing wrong here? Can someone please help me out.

0

There are 0 best solutions below