If you‘re using using macOS or unix, you might have heard people talking about “package managers”. These are simple utilities which help you, erm, manage packages. There are a few common ones which people recommend;
yum. There are more and they all work in a very similar way.
If you work on macOS, then the package manager I would recommend using is Homebrew Sometimes this is just referred to as “brew”.
First you need to install Homebrew, then it's just a case of finding the packages you need. Homebrew comes with built in search functionality, so give that a go;
brew search git
brew search node
brew search npm
brew search php
Once you have found what you need, then it‘s really quick to install the packages;
brew install git node npm email@example.com
Now you have access to git, node, npm and PHP 7.3. Magic!
And it‘s simple to keep all these packages up to date. Simple run the following command;
There are a few more commands which help keep everything up to date and clean up any old packages as well. I have added an alias to easily run these. Try adding the following;
alias brewup="brew update; brew upgrade; brew cleanup --prune-prefix; brew cleanup; brew doctor"