Problems running #node-red as a service (remove nvm)

On some Raspberry Pi’s of mine I had problems running node-js as a service as described here. The only hint of a problem I got was a cryptic “run nvm use latest/*” in the setup. I also remembered a post saying that node-red does not like nvm.

So how to get rid of nvm you have it installed?


sudo npm uninstall nvm

to remove it.

Then remove the lines nvm add to your .bashrc file. They are located at the end of the file and look like this

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/" ] && . "$NVM_DIR/" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion

Now remove the nvm config folder

rm -rf ~/.nvm

Now run the node-red setup/update script again and after that services will work again.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.