This happens when your machine does not have ghostscript installed, to fix it simply do
brew install ghostscript