homebrew
Terminal
npm
Terminal
If you are having trouble updating through homebrew, fully resetting your tap may fix the issue:
brew uninstall graphite && brew untap withgraphite/tap && brew install withgraphite/tap/graphite