nvm: Node.js Version Manager

Install nvm

$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash

ref:
https://github.com/creationix/nvm

Install Node.js

You could also simply run brew install node if you don't really care about what version you installed.

$ nvm ls-remote

$ nvm install --lts

$ nvm install 10.15.0 && \
  nvm use 10.15.0 && \
  nvm alias default 10.15.0

$ nvm ls

ref:
https://nodejs.org/en/

Install Node.js Packages

$ npm install pangu