# Cant install theme on Jekyll 4.0.0 version

**URL:** <https://talk.jekyllrb.com/t/cant-install-theme-on-jekyll-4-0-0-version/3584>\
**Category:** Help\
**Created:** [November 12, 2019, 11:48am UTC](https://talk.jekyllrb.com/t/cant-install-theme-on-jekyll-4-0-0-version/3584 "2019-11-12T11:48:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![miracleofweb](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@miracleofweb](https://talk.jekyllrb.com/u/miracleofweb)\
**Post date:** [November 12, 2019, 11:48am UTC](https://talk.jekyllrb.com/t/cant-install-theme-on-jekyll-4-0-0-version/3584/1 "2019-11-12T11:48:43Z")

</div>

Hello!

First time trying Jekyll. I have Windows 10 Home. Installed Ruby (2.6), Jekyll (4.0.0) and Bundler (2.0.2). And everything works fine (I go to the site through the localhost:4000 address).

But I encountered a problem when installing the theme in Jekyll. I liked the Sleek theme: [https://rubygems.org/gems/jekyll-sleek](https://rubygems.org/gems/jekyll-sleek).

And I go to the Gemfile, write gem “jekyll-sleek” and in the terminal the bundler install command.

After that I get the inscription: **Bundler could not find compatible versions for gem “jekyll”.** Am I having compatibility issues? Jekyll version 4 does not work with the Bundler or what?

I am new to Jekyll. I worked with Wordpress for 5 years, sorry for the stupid questions and bad English.

P.s. Here is a screenshot of Power Shell: [https://prnt.sc/pvusta](https://prnt.sc/pvusta)

---

<div class="post-metadata">

**Author:** ![ashmaroli](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@ashmaroli](https://talk.jekyllrb.com/u/ashmaroli)\
**Post date:** [November 12, 2019, 12:06pm UTC](https://talk.jekyllrb.com/t/cant-install-theme-on-jekyll-4-0-0-version/3584/2 "2019-11-12T12:06:01Z")

</div>

The issue is that `jekyll-sleek` is not compatible with Jekyll 4.0.  
The `jekyll ~> 3.6` line in the link you posted is equivalent to  
`gem "jekyll, ">= 3.6.0", "< 4.0.0"`

The solution is to edit your Gemfile to the following:

```ruby
gem "jekyll", "~> 3.6"

```

Then run `bundle install` again.

---

<div class="post-metadata">

**Author:** ![miracleofweb](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@miracleofweb](https://talk.jekyllrb.com/u/miracleofweb)\
**Post date:** [November 12, 2019, 12:28pm UTC](https://talk.jekyllrb.com/t/cant-install-theme-on-jekyll-4-0-0-version/3584/3 "2019-11-12T12:28:40Z")

</div>

Thank you for the answer!

When I write the following code:

```auto
gem "jekyll", "~> 3.6"

```

After I should run bundle install command? Or first I should do command bundle exec jekyll serve for website generation again?

Sry for bad English.

---

<div class="post-metadata">

**Author:** ![ashmaroli](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@ashmaroli](https://talk.jekyllrb.com/u/ashmaroli)\
**Post date:** [November 12, 2019, 12:53pm UTC](https://talk.jekyllrb.com/t/cant-install-theme-on-jekyll-4-0-0-version/3584/4 "2019-11-12T12:53:33Z")

</div>

First edit the Gemfile.  
Then run `bundle install` (Required only once)  
Once everything has installed successfully, run `bundle exec jekyll serve`

Any changes to your source files will be automatically picked up by the server. The only exception to this is editing the config file. Each time the config file is edited, you’ll have to stop and restart the server.
