Tag Archives: brew

How to Rollback Homebrew Update

How to rollback brew updateIf you use Homebrew to install software on macOS, you may notice that Homebrew may perform version upgrade prior to installing the software. If you wonder why, deep inside the core logic of brew, the main command line tool of Homebrew, there is a subroutine to perform automatic update when brew detects that the version installed on your machine is older than the latest available version. The automatic update is not usually a problem when your machine runs on latest macOS version. For older versions of macOS, however, automatic brew update can break things including brew itself. In the event that brew stops working after unexpected update, is it possible to rollback the update? In this article, we will show you how to undo brew update and bring back your system to the last working configuration.

Continue reading

How To Update Node.js on MacOS: Hindsight on Old Mac

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