I finally decided to update a machine with this command:
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node14
--node14 was because it complained about node10 no longer being supported.
Then I see/get this.
Running Node-RED update for user pi at /home/pi on raspbian This can take 20-30 minutes on the slower Pi versions - please wait. Stop Node-RED ✔ Remove old version of Node-RED ✔ Remove old version of Node.js ✔ v10.17.0 head: cannot open '/tmp/node.tgz' for reading: No such file or directory tar (child): /tmp/node.tgz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now Install Node.js for Armv6 ✘ Bad install: Node.js v10.17.0 Npm missing - Exit Add shortcut commands Update systemd script Any errors will be logged to /var/log/nodered-install.log
The important part (I think) is this from the log:
Reading package lists... Building dependency tree... Reading state information... Package 'nodejs-legacy' is not installed, so not removed Package 'npm' is not installed, so not removed Package 'nodejs' is not installed, so not removed The following package was automatically installed and is no longer required: libbluray2 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. curl: (60) SSL certificate problem: certificate has expired More details here: https://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. cp: cannot stat '/tmp/nodejs/*': No such file or directory rm: cannot remove '/tmp/node.tgz': No such file or directory Versions: node:v10.17.0 npm:missing
I don't want to blindly go on and
sudo apt autoremove.
I'd prefer to check before I make a bad situation worse.