How to Update Node to Any Version Using Npm




Node.js is exceptionally dynamic in the improvement and you may get news about the new release consistently. There are times when we really need to keep up numerous version of Node with the adaptability to switch between versions without experiencing the issue of installation.

Enter Node helper or n.
You need to have at least a node package manager or npm installed in your system.

Here is the thing that you have to do step by step :

Step 1: Clean npm cache


Step 2: Install node helper (n) globally.


Once node helper is installed. You can either get the latest stable version


Or if you want specific version like I needed 8.0.0 , at that point you can do it



After update, you can check the latest version of node using



 Or


If you need to change to the different version Node, simply type n in the terminal and you should see the Node versions listed. Use arrow keys to pick the version and press enter.

I use this package in production servers too. Works great. 



Disqus Comments