Since yesterday, two of us in different countries have been trying to update Node-Red without success. Today I took a known working Node Red installation on an RPI3 B+ (Node 6) and tried to install your upgrade script https://nodered.org/docs/getting-started/upgrading
I've used this upgrade script after my own install script many times in the past without issue.
This is what I'm getting now. Will not install node.js after deleting the original. Any ideas? after several attempts (usind decent SDs - Sandisk Ultra 16GB) I'm no further forward.
pi@pi3b:~:15:24> bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)
This script will remove versions of Node.js prior to version 6.x, and Node-RED and
if necessary replace them with Node.js 8.x LTS (carbon) and the latest Node-RED from Npm.
It also moves any Node-RED nodes that are globally installed into your user
~/.node-red/node_modules directory, and adds them to your package.json, so that
you can manage them with the palette manager.
It also tries to run 'npm rebuild' to refresh any extra nodes you have installed
that may have a native binary component. While this normally works ok, you need
to check that it succeeds for your combination of installed nodes.
To do all this it runs commands as root - please satisfy yourself that this will
not damage your Pi, or otherwise compromise your configuration.
If in doubt please backup your SD card first.
Are you really sure you want to do this ? [y/N] ? y
Running Node-RED update for user pi at /home/pi
This can take 20-30 minutes on the slower Pi versions - please wait.
Remove old version of Node-RED
Remove old version of Node.js -
Update Node.js LTS ✘ Failed to install Node.js - Exit
Clean npm cache
Install Node-RED core
Move global nodes to local
Install extra Pi nodes
Npm rebuild existing nodes
Add menu shortcut
Update systemd script
Any errors will be logged to /var/log/nodered-install.log