Believe or not this information was not easy to find.
Here how to upgrade your Node.js version 😉
Your current Node.js version
Run the following command to know what version you have installed.
You can check what's the last version available on the official Nodejs.org website
Before upgrading, clean the cache
sudo npm cache clean -f
You need this to run the upgrade command:
(skip to next step if you already have it)
sudo npm install -g n
To the last stable version:
sudo n stable
To a specific version:
sudo n 0.8.11Code language: CSS (css)