Table in dashboard


Hello,
I wanted to include a simple ui-table in my dashboard...but it does not work. The table is created, but with no content!?
In the screenshot you can see the flow, the data array and the ui-list settings. node-red version is 3.0.2.
Any clue what's the issue?
regards
Martin

The list node is for generating a list of items, not a table. Look at the help text of node and you will see that it expects particular properties. Perhaps you want the Table node which is node-red-node-ui-table (node) - Node-RED.

Also upgrade node-red, at least to the latest 3.1.x if not 4.0.x. The version you are using is old and has known bugs.

Many thanks for your suggestions.
What I have done

  1. Update node-red to version 4.0.8, dashboard v3.6.5, node.js 22.12.0
    (re-) starting node red. The strange thing is, that in the burger menue, last line the version is still 3.0.2 !!??
  2. tried to install ui-table. rc = 1. ERR: "...unsuppoprted engine..." ..."...not compatible with version of node/npm..."
    node v12.18.3 (also here is a mismatch to above)
    npm v6.14.6

seems as the update didn't work !!??
regards
martin

How did you upgrade nodejs?

How did you upgrade node-red?

What do these command show?

node -v
which node

within the upgrade process there was an info on how to update nodejs...which I followed.
upgrade was done by the following command:
npm install -g --unsafe-perm node-red
node - v
shows v22.12.0
which node
does. not to seem to be a valid command

Depends on your os. Try where node instead.

where node results to
c:\Program Files\nodejs\node.exe

How are you starting node-red?

Show us the output when you stop node red then start it again in a command window.

Starting at cmd line:
node-red
output after stopping node red ( ctrl c)
see screenshot

For the future please copy/paste such output rather than screen shot.
As you can see it is using the correct node red and nodejs versions.

Start it again in the same way, connect using the browser and make sure to refresh the page. Then try the ui-table install again and see what happens. If you get an error post the full output here.

I tried again to install ui-table with the following result:

2025-02-06T10:02:01.543Z Installieren : node-red-node-ui-table 0.4.4

2025-02-06T10:02:01.047Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-node-ui-table@0.4.4

2025-02-06T10:02:40.632Z [err] npm

2025-02-06T10:02:40.638Z [err] ERR! code

2025-02-06T10:02:40.639Z [err] ENOTSUP

2025-02-06T10:02:40.708Z [err] npm

2025-02-06T10:02:40.710Z [err]

2025-02-06T10:02:40.716Z [err] ERR!

2025-02-06T10:02:40.718Z [err] notsup Unsupported engine for node-red-node-ui-table@0.4.4: wanted: {"node":">=16"} (current: {"node":"12.18.3","npm":"6.14.6"})

2025-02-06T10:02:40.718Z [err] npm

2025-02-06T10:02:40.721Z [err] ERR! notsup Not compatible with your version of node/npm: node-red-node-ui-table@0.4.4

2025-02-06T10:02:40.721Z [err] npm ERR! notsup Not compatible with your version of node/npm: node-red-node-ui-table@0.4.4

2025-02-06T10:02:40.721Z [err] npm ERR! notsup Required: {"node":">=16"}

2025-02-06T10:02:40.725Z [err] npm ERR! notsup Actual: {"npm":"6.14.6","node":"12.18.3"}

2025-02-06T10:02:40.770Z [err]

2025-02-06T10:02:40.786Z [err] npm ERR! A complete log of this run can be found in:

2025-02-06T10:02:40.786Z [err] npm ERR! /home/root/.npm/_logs/2025-02-06T10_02_40_733Z-debug.log

2025-02-06T10:02:40.856Z rc=1

What still puzzles me is that the last line in the burger menue still shows 3.0.2, which is the running node red version, isn´t it? Shouldn't it read 4.0.8?

It seems that somehow still an older version of node red is runniPreformatted textng!?

...

This Log is from a linux box.


This is from a windows box


NOTES:

  1. Do NOT run Node-RED as root unless absolutely required and the risks are understood/mitigated.
  2. Node v12.18.3 is seriously out of date (end of life)

Did you do this while node red was running in a command window as I suggested? If so then show us the output there when you attempted to install the node. Otherwise please try it as I suggested.

How do you usually run node red? It seems that the running version when you try the install is a different version of node-red using a different version of nodejs.

[Edit] As Steve has pointed out, the command window output is not even from the machine that the install log is from.
Are you running node red on a pi or similar and viewing it from a Windows box? If so then you need to update node-red and nodejs on the pi, not on the windows box. If it is running a debian based os (such as Pi OS or Ubuntu) then use the bash script from this link to update it: Running on Raspberry Pi : Node-RED

Many thanks for bearing with me.
Meanwhile I solved the problem. It was so easy, I dont dare to tell. The problem was looking at the screen...it was me.
Many thanks again. The issue can be closed.