too slow, what @zenofmud said, doesn't hurt your node red install or flows, will just update node js, assuming you have the latest node red install already
[edit] that's what took me so long, had to fire up laptop to look for whole bash command, was using phone too
That is poor. The current LTS for node-red is 14 isn't it? You shouldn't really need to go beyond that unless you are testing something that will be introduced when node-red v4 is published.
If you have any gasoline pour a cup on the board and apply lit match. Otherwise you are going to have to wait for a better mind than mine, that's all I got.
I'm afraid that this is why I don't use things like Dave's excellent script. I'd rather understand and be able to take direct control. I use the node.js Debian repo so I can update with just sudo apt update && sudo apt upgrade with a major version upgrade just needing a changeover of the repo.
They are node.js version managers. Let you have multiple versions installed and switch between them. Causes all manner of confusion.
Here's the first part of the log file. Not sure what to do next..
Already have nodejs v16.15.0
OLD nodejs 16 :
NEW nodejs 14 :
Started : Thu 29 Sep 14:20:58 BST 2022
Running for user pi at /home/pi
Found global nodes: :
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Package 'nodered' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 159 not upgraded.
Installing nodejs 14
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Package 'npm' is not installed, so not removed
The following packages will be REMOVED:
nodejs
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 30, in
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
0 upgraded, 0 newly installed, 1 to remove and 158 not upgraded.
After this operation, 115 MB disk space will be freed.
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database$
Removing nodejs (16.15.0-deb-1nodesource1) ...
dpkg: warning: while removing nodejs, directory '/usr/lib/node_modules/npm/docs/output/using-npm' not empty so not removed
dpkg: warning: while removing nodejs, directory '/usr/lib/node_modules/npm/node_modules/emoji-regex' not empty so not removed
dpkg: warning: while removing nodejs, directory '/usr/lib/node_modules/npm/node_modules/@tootallnate/once' not empty so not removed
dpkg: warning: while removing nodejs, directory '/usr/lib/node_modules/npm/node_modules/brace-expansion' not empty so not removed