How to upgrade NodeJS using NPM
Quick steps to upgrade:
Check current installed nodejs version.
[[email protected]]# node -v
Force clean cache.
[[email protected]]# npm cache clean -f
[[email protected]]# node -v
[[email protected]]# npm cache clean -f
SSH into your server and follow below steps:
NOTE: I am logged in as root, so I haven't used SUDO.