Nodes installed but not available - grey dashed boxes in palette

Hi there,

After installing a few libraries in Node Red some went fine and the node-red-contrib-modbustcp is not working.
I see the nodes in de Palette, but the have a grey dashed box instead of a normal colour. The nodes do not apear in the list on the left.

OPCUA went without problems and modbus install went fine but still I'm not getting the nodes.

I'll try to upload a picture/printscreen.

What is wrong?

When you restart Node-RED are there any warnings or errors printer in the startup messages?
Those message also contain the version of Node-RED and nodejs installed, can you paste that information here as well?

I get a warning:

5 sep 14:10:03 - [warn] [modbus tcp] SyntaxError: Unexpected token function

What machine are you running Node-RED on?
You are starting Node-RED when it would appear to already be running

The issue is likely to be the old version of node.js - 6.x

It may well be the modbus nodes require node 8.x or later.

I'm running on a Magelis IIoT Edge Box from Schneider-Electric.

I tried: npm install node-red-contrib-modbus --build-from-source

no result.

So as Nick suggested you need to install a version that is compatible with the version of nodejs you are running.

You can either check to see if there is a supported newer version of nodejs for your device
Or install a version of the node that works with nodejsv6.

If you had read the ReadMe for the node before you installed it, it does specify this.

On top of that, it says it cannot connect because the port 1880 is already in use. Are you running node-red already, or something else on the same port?

Yes you are right. I started Node-red with Node-red allready running.

I'm still unable to find on internet the dependencies for which version of Node.js you need for node-red-contrib-modbustcp@1.2.3

Will try with older versions

Try the readme for the node on which lists which version of nodejs different versions of the node support.

You can then install the specific version on the command line

With node-red-contrib-modbustcp version 1.1.2 it is succesfull.

Modbus Server node not yet working, but modbustcp-write en read, the ones I need. now available

1 Like