Node red not loading

Hello. I was going to try to start learning how to use node red. When I click on the node red link in Webapps it just sits at "If your browser doesn't automatically go there within a few seconds, you may want to go to Node Red manually." How might I go about finding what the problem is?
13 Replies
jimseng
jimsengOP5d ago
I have been trying that and I get the same thing, just spinning loading. I have been trying to go from my Win11 machine and to localhost on the Pi. The only thing I can see in journalctl is this: "TypeError: util.log is not a function" but I don't know if it is relevant or even how to log/debug it.
Scott Bender
Scott Bender5d ago
anything interesting in /var/log/messages?
jimseng
jimsengOP5d ago
On the Pi I think it is in journalctl but it is the same as when I run signalk-server from the command line (or similar, anyway.) there is some node rud stuff when I run it: ./signalk-server The installed version of node (v23.6.0) is different than the recommended version (18 - 20). See https://github.com/SignalK/signalk-server/wiki/Installing-and-Updating-Node.js for more information how to upgrade. (node:3576) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) signalk-server running at 0.0.0.0:3000 TypeError: util.log is not a function at LogHandler.consoleLogger [as handler] (/home/pi/.signalk/node_modules/@node-red/util/lib/log.js:94:18) at LogHandler.<anonymous> (/home/pi/.signalk/node_modules/@node-red/util/lib/log.js:66:18) at LogHandler.emit (node:events:507:28) at /home/pi/.signalk/node_modules/@node-red/util/lib/log.js:160:21 at Array.forEach (<anonymous>) at Object.log (/home/pi/.signalk/node_modules/@node-red/util/lib/log.js:159:21) at Object.info (/home/pi/.signalk/node_modules/@node-red/util/lib/log.js:169:13) at /home/pi/.signalk/node_modules/@node-red/runtime/lib/index.js:150:17
Scott Bender
Scott Bender5d ago
hmm. what version of nodejs are you running?
jimseng
jimsengOP5d ago
node -v v23.6.0 I think this is what got installed when I installed it through the plugin page in signalk Or do I mean appstore?
Scott Bender
Scott Bender5d ago
has nothing to do with the appstore "The installed version of node (v23.6.0) is different than the recommended version (18 - 20)"
jimseng
jimsengOP5d ago
So do I need to install a different version of nodejs? I don't remember doing anything unusual.
Scott Bender
Scott Bender5d ago
I am pretty sure that is the problem, but not 100% sure I have not tested with v23
jimseng
jimsengOP5d ago
OK. Um.. I guess I can look that up, unless you happen to know how?
Scott Bender
Scott Bender5d ago
not off the top of my head @Teppo Kurki have you seen this?
jimseng
jimsengOP5d ago
OK. So it was fairly straight forward by removing the newer version: sudo apt remove nodejs And then going through the setup instructions as linked from the signalk Pi setup page. Node red is loading now with v20.18.1. Thank you.
Teppo Kurki
Teppo Kurki5d ago
I remember seeing something way way earlier related to a fresh Node version and NR

Did you find this page helpful?