Upgrade node.js version in ubuntu 14 or ubuntu 16

Upgrade node.js, how to upgrade node.js in ubuntu,
There are several ways to upgrade node.js on ubuntu servers. Before upgrading always make sure your applications are compitable to new node.js version. Test it locally. Do not ever upgrade directly. There are many modules which tend to break with new versions.

Once you are sure what you are doing. Follow below steps to upgrade.

Remove old node js installation

sudo apt-get remove nodejs

Install New node.js verion.

I mentioned this in my previos article. Follow these steps to know how to install latest version.
How To Install Node.js on Ubuntu 16.04 and on 14.04

Let me know if any questions. Thank you.

The following two tabs change content below.
He is founder and CTO of Habilelabs.io. He senior software architect. He is guru of various Mobile and web technologies including Node.js, Angular.js, Meteor.js. He is founder member of habilelabs Pvt. Ltd.