# Jhead and svgo errors while running specs

**URL:** https://meta.discourse.org/t/jhead-and-svgo-errors-while-running-specs/76799
**Category:** Development
**Created:** [27 Dicembre 2017, 6:26am UTC](https://meta.discourse.org/t/jhead-and-svgo-errors-while-running-specs/76799 "2017-12-27T06:26:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dmitry\_fedyuk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmitry_fedyuk/32/293153_2.png) [@dmitry\_fedyuk](https://meta.discourse.org/u/dmitry_fedyuk)
#### Post date: [27 Dicembre 2017, 6:26am UTC](https://meta.discourse.org/t/jhead-and-svgo-errors-while-running-specs/76799/1 "2017-12-27T06:26:19Z")

</div>

@techAPJ

«[Beginners Guide to Install Discourse on Ubuntu for Development](https://meta.discourse.org/t/topic/14727)».  
I use the latest stock version of Ubuntu Desktop ([16.04.3 LTS](http://releases.ubuntu.com/xenial/)) 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:

 ![01](https://global.discourse-cdn.com/meta/original/3X/c/e/cea2aaa01374d3876a8d04e7fcd4d73d76718292.png)

> 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)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [27 Dicembre 2017, 6:36am UTC](https://meta.discourse.org/t/jhead-and-svgo-errors-while-running-specs/76799/2 "2017-12-27T06:36:38Z")

</div>

Here’s how to fix this:

```shell
# 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.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [27 Dicembre 2017, 1:16pm UTC](https://meta.discourse.org/t/jhead-and-svgo-errors-while-running-specs/76799/3 "2017-12-27T13:16:36Z")

</div>

> [@techAPJ](#):
>
> 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`.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [31 Dicembre 2017, 2:08am UTC](https://meta.discourse.org/t/jhead-and-svgo-errors-while-running-specs/76799/4 "2017-12-31T02:08:51Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.
