You will need to download and install Composer first.
Once done, open your terminal, navigate to the root of your Joomla installtion, and type in the following command:
You'll then need to install NodeJS. Be sure to get the long term release 10.x.
Once installed, in the same terminal, run the following command:
These commands ...