Go to the node.js website, download the latest one for your system and install it. Everything else will be taken care of automatically. you can run node -v to check if it worked and the latest version will be installed.