And now node -v returns 16.13.2, but Node-RED is still running under 12.22.10 even after reboot.
I tried running the above bash <(curl... again but it didn't solve, and I also noticed it said something about how using nvm was not recommended.
you are right .. its not recommended to install Nodejs using nvm
you should try to uninstall it ..
and just let the bash script install the version of Nodejs
by just adding to the end of the command --node16
nvm use system
//Now using system version of node: v12.22.10 (npm v6.14.16)
nvm uninstall 16.13.2
//Uninstalled node v16.13.2
nvm unload
sudo nano .bashrc
I got the NVM warning again, and after install, I could not use node-red-start. I had to use ./node-red and when I exit, Node-RED shuts down. And it's still using 12.22.10!
So I guess I didn't completely do away with NVM...
If it's too complicated to fix at this point, I could go back to an earlier snapshot...
With NVM and similar tools, I think that each node version gets its own environment. That means that if you change node versions in nvm, you need to reinstall node-red for that version.
Similar concept to Python virtual environments - except that with Python, you can also get versions of Python from different vendors - massively confusing!