How to upgrade Node.js on Mac OS X
Posted on April 29, 2016 by Paul
If you already have Node.js installed on your Mac you will need to upgrade it when a new version comes up. There are basically two ways to achieve this goal download the installer from Node.js or use the command line to upgrade Node.js.
A simple way to upgrade Node.js from the Terminal is to use the n version manager:
Now, if you have XAMPP installed on your Mac, you need to do an extra step before upgrading Node.js:
At this point upgrading Node.js is as simple as:
For XAMPP users only, rename _HEAD back to the original HEAD:
You can check which versions of npm and Node.js you have on your system with:
If you want to learn more about Node.js I would recommend reading Node.js 8 the Right Way by Jim R. Wilson:
Show Comments