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
I was trying to install node module printer "npm install printer" and got few errors while trying few solutions that I found in different blogs, forums and stackoverflow sites.
I would like to share what worked for me at the end.