Here’s how I successfully upgraded from
v0.10.20 without any other requirements like brew etc, (type these commands in the terminal):
sudo npm cache clean -f(force) clear you npm cache
sudo npm install -g ninstall n (this might take a while)
sudo n stableupgrade to the current stable version
sudo might prompt your password.
Additional note regarding step 3:
stable can be exchanged for
lts (long term support) or any specific version number such as
If the version number doesn’t show up when typing
node -v, you might have to reboot.
These instructions are found here as well: davidwalsh.name/upgrade-nodejs
More info about the n package found here: npmjs.com/package/n
More info about Node.js’ release schedule: github.com/nodejs/Release