Problem installing node-red-dashboard

Hi,

I had a very nice working node-red,tick stack, mosquitto installation on my Rpi4. I was getting better and better in building flows..proud to show them to friends :wink: After a stupid installation of my webcam my whole setup, every file was gone to the owner www data ??.

Anyway I could mount my sdcard from my Synology NAS and save essential files from node-red and after a fresh OS and node-red installation I'm back again with all my flows....but missing my dashboard nodes. I can't install them from the palette nor from the commandline?
Below is my logfile can anyone help me to solve this problem?

2020-05-06T19:59:37.367Z Install : node-red-dashboard 2.21.0

2020-05-06T19:59:37.838Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-dashboard@2.21.0
2020-05-06T19:59:57.688Z [err] npm
2020-05-06T19:59:57.688Z [err]  WARN node-red-contrib-ui-led@0.3.1 requires a peer of node-red-dashboard@2.14.x but none is installed. You must install peer dependencies yourself.
2020-05-06T19:59:57.688Z [err] npm WARN node-red-project@0.0.1 No repository field.
2020-05-06T19:59:57.688Z [err] npm WARN node-red-project@0.0.1 No license field.
2020-05-06T19:59:57.689Z [err] 
2020-05-06T19:59:57.691Z [out] removed 959 packages in 18.719s
2020-05-06T19:59:58.272Z [out] 
2020-05-06T19:59:58.272Z [out] 1 package is looking for funding
2020-05-06T19:59:58.272Z [out]   run `npm fund` for details
2020-05-06T19:59:58.272Z [out] 
2020-05-06T19:59:58.328Z rc=0

node-RED version:

6 May 21:38:40 - [info] Node-RED version: v1.0.6
6 May 21:38:40 - [info] Node.js  version: v12.16.3
6 May 21:38:40 - [info] Linux 4.19.97-v7l+ arm LE
6 May 21:38:41 - [info] Loading palette nodes
6 May 21:38:43 - [info] Worldmap version 2.3.8
6 May 21:38:43 - [info] Node-RED Dashboard not found - ui_worldmap not installed.
6 May 21:38:43 - [info] Settings file  : /home/pi/.node-red/settings.js
6 May 21:38:43 - [info] HTTP Static    : /home/pi/node-red-static
6 May 21:38:43 - [info] Context store  : 'default' [module=memory]
6 May 21:38:43 - [info] User directory : /home/pi/.node-red
6 May 21:38:43 - [warn] Projects disabled : editorTheme.projects.enabled=false
6 May 21:38:43 - [info] Flows file     : /home/pi/.node-red/flows_Rpi4.json
6 May 21:38:43 - [error] Unable to listen on http://127.0.0.1:1880/
6 May 21:38:43 - [error] Error: port in use

Kind regards,
maru

That suggests that possibly you had nodes installed that are not in your package.json
The Port in Use error is because you have not stopped an already running instance of node red before starting a new one.
If you go to your .node-red directory and run
ls -al
what does it show?
Also try the install using the command line and see what happens this time, also from the .node-red directory
npm install node-red-dashboard

Thanks Colin,

Problem solved.
I think Port in Use was the problem cause after installing the node-red-dashboard nodes, one must restart node-RED and if there was an instance of node-RED running I will not see the new dashboard nodes.

I did a commandline install and reboot, and my nodes are back again :wink:

You can do node-red-stop then node-red-start instead of reboot.

Thanks Steve I knew....I thought: sudo reboot now are less characters to type :wink:

2 Likes

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