Modbus tcp not installed

Hi All!
Im newbe in node-red, I installed it on PI 4 B(2GB), and when I do install,- npm install node-red-contrib-modbus-tcp-ip

I have got the folling install flow

npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.

  • node-red-contrib-modbus-tcp-ip@1.1.5
    updated 1 package and audited 12 packages in 2.33s
    found 0 vulnerabilities
    After that in node red i cant find appropriates nodes
    The same situations with
    npm install node-red-contrib-modbustcp
    npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
    npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
    npm WARN pi No description
    npm WARN pi No repository field.
    npm WARN pi No README data
    npm WARN pi No license field.

  • node-red-contrib-modbustcp@1.2.3
    updated 1 package and audited 12 packages in 2.097s
    found 0 vulnerabilities

So I need help!

Seems like you called npm install from the wrong directory, the node modules got installed directly into your user directory.

You need to change into your Node-RED workspace directory first, usually ~/.node-red and call npm install from there.

Or probably better to use the install method built into node red. Select Manage Palette in the menu drop-down.

Thank you very much, Now Ive got modbus-tcp nodes!!!!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.