Updating packages and apps on MacOS is usually a trivial task. There are several avenues available, depending on the personal preference and degree of familiarity with various tools available on Mac. Now consider a case for updating Node.js (and subsequently npm) on MacOS. What are the options?
tl;dr Updating Node.js with lightweight package manager such as n
is less error prone especially for older MacOS version
Let’s start by listing the options on our perusal.
Option 1: Download the installer from nodejs.org and install the binary
This option is ideal for the first installation. It is less ideal for update / version upgrade or if we want to maintain several nodejs versions on the machine. Continue reading