In this tutorial, you will learn to install the latest version of Node.js on your Raspberry Pi 3. The latest image of Raspbian Operating System (as of December 2017) contains an older version of the Node.js application. You can manually update it to the latest version by removing the existing version and re-installing the newest version using "n – Interactively Manage Your Node.js Versions."
Step 1: First remove existing old version from Raspberry Pi
Step 2: Installing n will automatically install latest stable version of Node.js
Step 3: Verify your installation version
Step 4: Optional: You can easily switch to different releases
You should now successfully have latest version of Node.js on your Raspberry Pi, if you have any issues please ask question in comments.