[lib] Install Node.js and npm via Homebrew on OS X

Now that the `npm` related issue (see: Homebrew/homebrew#27479) has been
fixed (see: Homebrew/homebrew#28075), revert back to using `Homebrew` to
install `Node.js` and `npm` on OS X.