Stuck with how to resolve this problem (Global context testing)

It is best to schedule a reminder for yourself to run an update on all your OS installs and Node.js/Node-RED installs - maybe every 6months. Or more often if you can stomach it.

For most people, it is easier to keep up by doing smaller changes every few months than it is to have to do a massive set of changes every few years.

On Debian based Linux, at least doing:

sudo apt update && sudo apt upgrade
sudo npm -g update
cd ~/.node-red
npm update

Restart Node-RED afterwards.

And every year, check out the current Node.js LTS version and upgrade to the latest supported by Node-RED using Dave's script.

Obviously, for commercial use, things need to be a bit more carefully controlled.

1 Like

I think I may start a new thread.

Alas things are not working here as I would like.

I think you use the standard install on your PIs don't you? If so then just use the usual install/upgrade script to update node red and nodejs. Add --node20 on the end if you want to go to v20, which is probably a good idea.

The script will copy with any PI. If you have a very old OS it may not work. I think anything after Jessie should be ok, though I am not certain about Stretch.

I'm running NR 4.x and Node20 on RasPi 3B and 3B+ with no problem. have a massive NR flow and the RasPi is running less than 10% CPU, and 43% memory.
So plenty of legs left in the Pi3B and it is much lower power.
Even loaded Node 22 which ran OK, but had a lot of depreciation warnings so will wait a but longer.

2 Likes

Thanks for the assurance.

I'll have to get around to updating the machines soon.

It is just there are a lot of open cans of worms just now.

:frowning:

Worm Catcher
Our Magpies will happily take all your worms, they have a few chicks to feed.
:slight_smile:

1 Like

You from Oz?

:+1: Yep. would have just left the emoji but forum wants at least 9 characters.

1 Like

Australian magpies, such lovely voices!

OK I have heard that they sometimes drop from the trees to attack foreigners, but what Aussie wildlife doesn't? :smile:

1 Like

Always found it amazing that so much of Oz consists of venomous plants and animals.

Even the Duck-billed Platypus for goodness sake!

And I love that Aussie's claim that the Brits always talk about the weather but spend a lot of their time .... talking about the weather. :rofl: