# Liquid 4.0.0 unknown error

**URL:** <https://talk.jekyllrb.com/t/liquid-4-0-0-unknown-error/690>\
**Category:** Help\
**Created:** [June 23, 2017, 1:12pm UTC](https://talk.jekyllrb.com/t/liquid-4-0-0-unknown-error/690 "2017-06-23T13:12:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)\
**Post date:** [June 23, 2017, 1:12pm UTC](https://talk.jekyllrb.com/t/liquid-4-0-0-unknown-error/690/1 "2017-06-23T13:12:42Z")

</div>

What is this error:

![](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/1X/e426181e8bba1ac49512ffec18661a873e7be420.png)

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [June 24, 2017, 12:38am UTC](https://talk.jekyllrb.com/t/liquid-4-0-0-unknown-error/690/2 "2017-06-24T00:38:28Z")

</div>

This happens when you have multiple versions of a gem installed and conflicts arise. Try the suggestion in the error by prepending Jekyll commands with `bundle exec`

```auto
bundle exec jekyll serve
bundle exec jekyll build

```

---

<div class="post-metadata">

**Author:** ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)\
**Post date:** [June 24, 2017, 9:15am UTC](https://talk.jekyllrb.com/t/liquid-4-0-0-unknown-error/690/3 "2017-06-24T09:15:38Z")

</div>

> [@mmistakes](#):
>
> bundle exec jekyll serve  
> bundle exec jekyll build

Do I need to use these command every time `bundle exec` to develop a jekyll website?

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [June 24, 2017, 12:48pm UTC](https://talk.jekyllrb.com/t/liquid-4-0-0-unknown-error/690/4 "2017-06-24T12:48:07Z")

</div>

Yes. It will eliminate a lot of dependency issues as it tells Bundler what gems to use according to your `Gemfile` and `Gemfile.lock`.

---

<div class="post-metadata">

**Author:** ![ckruse](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/ckruse/32/16_2.png) [@ckruse](https://talk.jekyllrb.com/u/ckruse)\
**Post date:** [June 24, 2017, 1:03pm UTC](https://talk.jekyllrb.com/t/liquid-4-0-0-unknown-error/690/5 "2017-06-24T13:03:52Z")

</div>

Cloucannon has a good write up on gems and bundler:

> **[Gems, Gemfiles and the Bundler](https://learn.cloudcannon.com/jekyll/gemfiles-and-the-bundler/)**
>
> Overview of the Ruby ecosystem

---

<div class="post-metadata">

**Author:** ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)\
**Post date:** [June 24, 2017, 1:18pm UTC](https://talk.jekyllrb.com/t/liquid-4-0-0-unknown-error/690/6 "2017-06-24T13:18:52Z")

</div>

Is there is any way, by which we can remove the previous version and only keep the latest version of jekyll.

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [June 24, 2017, 2:30pm UTC](https://talk.jekyllrb.com/t/liquid-4-0-0-unknown-error/690/7 "2017-06-24T14:30:16Z")

</div>

`gem uninstall jekyll`

---

<div class="post-metadata">

**Author:** ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)\
**Post date:** [June 24, 2017, 7:13pm UTC](https://talk.jekyllrb.com/t/liquid-4-0-0-unknown-error/690/8 "2017-06-24T19:13:34Z")

</div>

> [@mmistakes](#):
>
> gem uninstall jekyll

But doesn’t it will uninstall the Jekyll completely from my local machine.

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [June 24, 2017, 8:06pm UTC](https://talk.jekyllrb.com/t/liquid-4-0-0-unknown-error/690/9 "2017-06-24T20:06:11Z")

</div>

Well isn’t that what you asked above? To remove a previous version of Jekyll you need to uninstall it. If you have multiple versions of a gem installed it will prompt you to pick which version or uninstall them all.

![](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/1X/f46d9151ba4a5f209822adad340ef4e7abf4c6dd.png)

---

<div class="post-metadata">

**Author:** ![gvdm](https://avatars.discourse-cdn.com/v4/letter/g/aca169/32.png) [@gvdm](https://talk.jekyllrb.com/u/gvdm)\
**Post date:** [July 2, 2017, 1:23pm UTC](https://talk.jekyllrb.com/t/liquid-4-0-0-unknown-error/690/10 "2017-07-02T13:23:33Z")

</div>

Just to add to the already useful advice - If you’re concerned about lots of old versions hanging around, the `--version` option is really useful.

* * *

For example, check latest version with  
`jekyll --version`

Then uninstall all versions before that  
`gem uninstall jekyll --version '<4.0.0'`
