To upgrade to latest release of NodeJs server run below commands on terminal.

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

after this type 

node -v

to check version of your server. That’s it 🙂