Flows stopped due to missing nodetypes after reinstall

My development pi3b sd card got bad so I reinstalled my system. I had a backup of all the flows but then the nodes were not installed. So I managed to get almost all things to get working except for ui_base, ui_link, ui_spacer and so on till ui_dropdown and ui_colour_picker. So I installed noder-red-dashboard, although deprecated, and then the error did not go away. In the manage palette screen there is a strange error: in the node-red-dashboard palette it saia 19x [object Object] where the last one had a yellow triangle in front with a ! in it. And then it says 21 nodes.

What to do to get things working again?

Assuming that you used the recommended pi install script, go into your .node-red folder and run
npm remove node-red-dashboard
npm install node-red-dashboard
And post the full output from that.

Then restart node red using
node-red-stop
node-red-start
If you still have the problem then post the full output from the stop/start.

pi@rbpi3b1:~ $ npm remove node-red-dashboard

up to date in 3s
pi@rbpi3b1:~ $ npm install node-red-dashboard
npm error code EINTEGRITY
npm error errno EINTEGRITY
npm error Invalid response body while trying to fetch https://registry.npmjs.org/node-red-dashboard: sha512-mcDq4bqhTVh7hn6kBmB6v8TfFfUQq+dhRxYsUtws0ZLidtVVxpAkH2hWI0Rgd13rLx//P7DxPRwZc64PS/O6oA== integrity checksum failed when using sha512: wanted sha512-mcDq4bqhTVh7hn6kBmB6v8TfFfUQq+dhRxYsUtws0ZLidtVVxpAkH2hWI0Rgd13rLx//P7DxPRwZc64PS/O6oA== but got sha512-2+Vr+gtlIxcjKlJq6+uIb54xIRLRWzLI7cUTUVGCG7k4ks3MOpqIaIoGf7yrSRX4qFzpdOpvaXoj+ggUOkH2JQ==. (549868 bytes)
npm error A complete log of this run can be found in: /home/pi/.npm/_logs/2025-09-11T07_53_25_126Z-debug-0.log
pi@rbpi3b1:~ $

pi@rbpi3b1:~ $ node-red-start

Start Node-RED

Once Node-RED has started, point a browser at http://192.168.17.71:1880
On Pi Node-RED works better with the Firefox or Chrome browser

Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot

To find more nodes and example flows - go to http://flows.nodered.org

Starting as a systemd service.

Started nodered.service - Node-RED graphical event wiring tool.
11 Sep 08:56:48 - [info]
Welcome to Node-RED

11 Sep 08:56:48 - [info] Node-RED version: v4.1.0
11 Sep 08:56:48 - [info] Node.js version: v20.19.4
11 Sep 08:56:48 - [info] Linux 6.12.34+rpt-rpi-v8 arm64 LE
11 Sep 08:56:49 - [info] Loading palette nodes
11 Sep 08:56:54 - [warn] ------------------------------------------------------
11 Sep 08:56:54 - [warn] [node-red-contrib-zigbee2mqtt/server] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_base] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_button] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_dropdown] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_switch] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_slider] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_numeric] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_text_input] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_date_picker] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_colour_picker] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_form] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_text] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_gauge] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_chart] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_audio] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_toast] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_ui_control] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_template] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_link] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] [node-red-dashboard/ui_spacer] SyntaxError: Invalid or unexpected token
11 Sep 08:56:54 - [warn] ------------------------------------------------------
11 Sep 08:56:54 - [info] Settings file : /home/pi/.node-red/settings.js
11 Sep 08:56:54 - [info] Context store : 'default' [module=memory]
11 Sep 08:56:54 - [info] User directory : /home/pi/.node-red
11 Sep 08:56:54 - [warn] Projects disabled : editorTheme.projects.enabled=false
11 Sep 08:56:54 - [info] Flows file : /home/pi/.node-red/flows.json
11 Sep 08:56:54 - [info] Server now running at http://127.0.0.1:1880/
11 Sep 08:56:54 - [warn] Using unencrypted credentials
11 Sep 08:56:55 - [info] Waiting for missing types to be registered:
11 Sep 08:56:55 - [info] - ui_base
11 Sep 08:56:55 - [info] - ui_link
11 Sep 08:56:55 - [info] - ui_spacer
11 Sep 08:56:55 - [info] - ui_button
11 Sep 08:56:55 - [info] - ui_switch
11 Sep 08:56:55 - [info] - ui_date_picker
11 Sep 08:56:55 - [info] - ui_form
11 Sep 08:56:55 - [info] - ui_chart
11 Sep 08:56:55 - [info] - ui_slider
11 Sep 08:56:55 - [info] - ui_text
11 Sep 08:56:55 - [info] - ui_gauge
11 Sep 08:56:55 - [info] - ui_text_input
11 Sep 08:56:55 - [info] - ui_numeric
11 Sep 08:56:55 - [info] - ui_dropdown
11 Sep 08:56:55 - [info] - ui_colour_picker

After the remove command noderedstart keeps complaining about node-red-dashboard.

So it seems not to be removed.

Is this on a new SD card or are you reinstalling on the one which failed?

Your npm install node-red-dashboard command failed. Try it again.
You may need to run npm install node-red-contrib-zigbee2mqtt too.

11 Sep 08:56:55 - [info] Waiting for missing types to be registered:
11 Sep 08:56:55 - [info] - ui_base
11 Sep 08:56:55 - [info] - ui_link
11 Sep 08:56:55 - [info] - ui_spacer
....

These messages mean that the Node-RED dashboard nodes are still present in your flow, but the node is not installed.

pi@rbpi3b1:~ $ npm install node-red-dashboard
npm error code EINTEGRITY
npm error errno EINTEGRITY
npm error Invalid response body while trying to fetch https://registry.npmjs.org/node-red-dashboard: sha512-mcDq4bqhTVh7hn6kBmB6v8TfFfUQq+dhRxYsUtws0ZLidtVVxpAkH2hWI0Rgd13rLx//P7DxPRwZc64PS/O6oA== integrity checksum failed when using sha512: wanted sha512-mcDq4bqhTVh7hn6kBmB6v8TfFfUQq+dhRxYsUtws0ZLidtVVxpAkH2hWI0Rgd13rLx//P7DxPRwZc64PS/O6oA== but got 
...

Implies that there was a problem when you tried to reinstall it. The error implies the tgz file that npm downloaded didn't match the hash it was given (it was changed or corrupted in transfer).

Best suggestion is to use the Node-RED palette manager to try and reinstall node-red-dashboard again, if the errors persist after reinstall, then you have a much bigger problem, something is messing with your traffic from the internet.

I prefer to use the command line in cases like this as it is easier to see what the problem is. @warnert did not notice the error when he initially installed using the palette manager, whereas it is clear to see when installing via the command line.

But yes, @warnert appears to have a major issue of some sort with his internet access.

Also, you have not gone into your .node-red folder before installing, as I instructed.

I installed a lot of other nodes and that all went well. Only this one fails.
But (later) I will fire-up another PI3 and do, as I did with this one on a new sd-card, a clean install.

Note that if you are moving an node red system from one machine another, after installing node red, restore the full .node-red folder from the old machine except for the node_modules folder and the file package-lock.json. The go into the .node-red folder and run
npm install
That will automatically install all the extra nodes that you had previously installed.

An alternative take on the issue might be a corrupted npm cache? Might be sensible to force clear the cache.

Good idea. @warnert, in your .node-red folder run
npm cache clean --force
and re-try the install.

I have done a fresh install on an other sd-card and there it worked.
So I copied the .node-red directory from the new system to the old one (after a rename from the original one) without the node_modules map and did the npm install.

After that the problem was solved, I could install all the modules I needed.

So maybe the cache was corrupt?

1 Like