Jhead and svgo errors while running specs

AI-generated summary

The discussion revolves around issues encountered while running specs for Discourse on Ubuntu. dmitry_fedyuk reported errors related to jhead and svgo workers. techAPJ provided a solution by installing jhead and svgo using the following commands:

sudo apt-get -y install jhead
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g svgo

However, techAPJ expressed a desire to avoid adding Node as a dependency for svgo. Falco responded that adding node dependencies might not be a problem, given the presence of package.json and yarn.lock in the repository.

@techAPJ

«Beginners Guide to Install Discourse on Ubuntu for Development».
I use the latest stock version of Ubuntu Desktop (16.04.3 LTS) which is unmodified, without any extra packages previously installed apart from the guide’s previous steps packages .

The bundle exec rake autospec guide’s step fails:

jhead worker: jhead not found; please provide proper binary or disable this worker (–no-jhead argument or :jhead => false through options)
svgo worker: svgo not found; please provide proper binary or disable this worker (–no-svgo argument or :svgo => false through options)

Here’s how to fix this:

# install jhead
sudo apt-get -y install jhead

# install node.js and svgo
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g svgo

Updated the install script to install jhead as well, need to figure out how to install svgo without adding node as dependency.

I believe there is no problem adding node deps now that our repo has package.json and yarn.lock.