Error when running appium-boilerplate project

I have installed and followed every step in the boilerplate documentation.
However when I run either npm run android.app or npm run android.browser i get the following error:

Has anybody experienced this before or any idea how to resolve this?