OK - lets revert to basics..
clear out all the old stuff - nuke it from space.
apt purge nodejs npm
rm -rf /usr/bin/node*
rm -rf /usr/lib/node_modules/*
rm /root/.npm-packages/bin/node-red
rm /var/log/nodered-install.log
then check that node -v
returns blank or not found and node-red-start
is also not found.
then re run the bash script.
then do a node -v
and npm -v
and which node-red-pi
to check where things are...
then hopefully a node-red-start