# \[SOLVED\] hexo-include-markdown

**URL:** <https://answers.netlify.com/t/solved-hexo-include-markdown/450>\
**Category:** Support\
**Tags:** deployment\
**Created:** [April 14, 2019, 6:51pm UTC](https://answers.netlify.com/t/solved-hexo-include-markdown/450 "2019-04-14T18:51:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@dev](https://answers.netlify.com/u/dev)\
**Post date:** [April 14, 2019, 6:51pm UTC](https://answers.netlify.com/t/solved-hexo-include-markdown/450/1 "2019-04-14T18:51:52Z")

</div>

found solution, but sharing for others.

I’m trying to include the module [hexo-include-markdown](https://github.com/tea3/hexo-include-markdown) on a fresh hexo blog, but it keeps throwing the error when deploying:

```
8:18:28 PM: Executing user command: hexo generate
8:18:31 PM: **FATAL [hexo-include-markdown] Could not open db.json .**
8:18:31 PM: Error: [hexo-include-markdown] Could not open db.json .
8:18:31 PM: at ReadFileContext.fs.readFile [as callback] (/opt/build/repo/node_modules/hexo-include-markdown/lib/orverwriteCache.js:22:15)
8:18:31 PM: at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:237:13)
8:18:31 PM: Error running command: Build script retu

```

I’ve installed with

```
$ npm install hexo-include-markdown --save

```

To solve this error, change netlify build & deploy, **“Build command”** to

```
hexo clean;echo "{}" > db.json;hexo generate

```

In the link:

```
https://app.netlify.com/sites/YOURSITE/settings/deploys

```

Sharing this solution so nobody has to waste 3 hours to fix this 🙂

---

<div class="post-metadata">

**Author:** ![fool](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/fool/32/37_2.png) [@fool](https://answers.netlify.com/u/fool)\
**Post date:** [April 15, 2019, 6:00pm UTC](https://answers.netlify.com/t/solved-hexo-include-markdown/450/2 "2019-04-15T18:00:50Z")

</div>

Thanks so much for closing that loop @dev! We very much appreciate it when you not only let the community know that you found an answer but also share it!

I wonder if you could check the empty database into your git repo, to not require that step? I don’t use hexo myself but I haven’t heard of other customers who do needing that workaround…

---

<div class="post-metadata">

**Author:** ![dev](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@dev](https://answers.netlify.com/u/dev)\
**Post date:** [April 15, 2019, 7:30pm UTC](https://answers.netlify.com/t/solved-hexo-include-markdown/450/3 "2019-04-15T19:30:57Z")

</div>

I haven’t tested, but that likely works. The issue is only for the hexo-include-markdown plugin, hexo itself works fine out of the box 🕶
