Cannot Update to 20.5


my nodered 19.5 install works fine on my Ubnutu 18.04 . I would like to Update to the latest 20.5 Version.

I use the

sudo npm install -g --unsafe-perm node-red

to update Nodered.
After restart i have always the old version.

Here is the install process:

root@xxxxx:/var/log# npm install -g --unsafe-perm node-red                                                                                                   
/usr/bin/node-red -> /usr/lib/node_modules/node-red/red.js                                                                                                       
/usr/bin/node-red-pi -> /usr/lib/node_modules/node-red/bin/node-red-pi
+ node-red@0.20.5                                                                                                                                                
updated 1 package in 10.915s

I have stoped nodered before but always the same.
nodejs Version is 8.16.

Can someone help?


which version of nodejs ?
Are you running nodejs under n or nvm ?
What does which node-red report ?

which node-red display the following: