Homebrew is another open source software package manager for macOS, which some say is the perfect replacement for MacPorts. It is available through their home page at http://brew.sh/. After installing Homebrew using the instructions on their website and ensuring that Homebrew is correctly set up, use the following:
$ brew update... long wait and lots of output$ brew search node==> Searching local taps...node libbitcoin-node node-build node@6 nodeenvleafnode llnode node@4 nodebrew nodenv==> Searching taps on GitHub...caskroom/cask/node-profiler==> Searching blacklisted, migrated and deleted formulae...
Then, ...