When running sonar-scanner-cli on Gitlab CI, the setup fails while installing npm package PhantomJS with error:
Phantom installation failed { Error: Command failed: tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar (child): bzip2: Cannot exec: No such file or directory
This occurs in the before_script as a result of bzip2 not being available on the image.