# Jhead and svgo errors while running specs

**URL:** <https://meta.discourse.org/t/jhead-and-svgo-errors-while-running-specs/76799>\
**Category:** Development\
**Created:** [2017 年 12 月 27 日午前 6:26 UTC](https://meta.discourse.org/t/jhead-and-svgo-errors-while-running-specs/76799 "2017-12-27T06:26:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [2017 年 12 月 27 日午前 6:36 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.

---

_[View the full topic](https://meta.discourse.org/t/jhead-and-svgo-errors-while-running-specs/76799)._
