I needed to re-install node-red so I completely removed nodejs, npm, and node-red. I then went through the install process again by first installing nodejs (version 10.x), then using npm to install node-red via the command:
I then went to run node red with the command: node-red
The error I got was "/usr/local/bin/node-red: No such file or directory".
Can anyone tell me why I'm getting this error? It appears I have node-red in my /usr/bin directory. So why does my installation seem to think it should be looking elsewhere?
Interestingly enough though the issue seemed to resolve itself. I tried uninstalling everything and removing all directories corresponding to the install. Then I ran the install again (including re-installing NodeJS according to the node-red website). I still had issues. Uninstalled again, re-installed, still had issues, that's when I posted.
I gave it a rest over night, and in the morning ran "sudo npm remove --purge node-red node-red-admin" to purge everything out. Also I ran a "sudo apt-get remove --purge nodejs" to clear out all node-js installs. Then I went back to the node-red website and again followed the steps for the ubuntu install and this time it works. I'm not sure what happened differently this time from the last few times I attempted but it seems to work now.