It is very simple to update Node.js and NPM same
as like your other software.
Update to Node.js, simply go to Node.js official
site and download Windows, Mac and Linux installer, and then execute the
installer. Now your latest version of Node.js is updated on your machine.
References,