# Cannot run theme after creating it

**URL:** <https://talk.jekyllrb.com/t/cannot-run-theme-after-creating-it/4409>\
**Category:** Uncategorized\
**Created:** [May 12, 2020, 12:02am UTC](https://talk.jekyllrb.com/t/cannot-run-theme-after-creating-it/4409 "2020-05-12T00:02:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheOmarUsman](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/theomarusman/32/2507_2.png) [@TheOmarUsman](https://talk.jekyllrb.com/u/TheOmarUsman)\
**Post date:** [May 12, 2020, 12:02am UTC](https://talk.jekyllrb.com/t/cannot-run-theme-after-creating-it/4409/1 "2020-05-12T00:02:24Z")

</div>

Hello everyone hope your doing great,

I have a really odd error because every tutorial I seen didn’t get it and I can’t seem to find a fix online

I made a new theme using

```auto
jekyll new-theme name

```

and then I ran

```auto
bundle exec jekyll serve

```

but got this error

```auto
Could not find gem 'rake (~> 12.0) x64-mingw32' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.

```

I’ve tried updating bundler using

```auto
gem install bundler

```

But to no luck

---

<div class="post-metadata">

**Author:** ![LorenzBung](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/lorenzbung/32/2505_2.png) [@LorenzBung](https://talk.jekyllrb.com/u/LorenzBung)\
**Post date:** [May 12, 2020, 6:08am UTC](https://talk.jekyllrb.com/t/cannot-run-theme-after-creating-it/4409/2 "2020-05-12T06:08:14Z")

</div>

Did you try running `bundle install`, as the error message tells you?

---

<div class="post-metadata">

**Author:** ![TheOmarUsman](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/theomarusman/32/2507_2.png) [@TheOmarUsman](https://talk.jekyllrb.com/u/TheOmarUsman)\
**Post date:** [May 12, 2020, 7:40am UTC](https://talk.jekyllrb.com/t/cannot-run-theme-after-creating-it/4409/3 "2020-05-12T07:40:19Z")

</div>

I fixed the error by doing the following:

go to your sitename.gemspec file and change the following

```auto
  spec.add_development_dependency "bundler", "~> someoldversion"
  spec.add_development_dependency "rake", "~> someoldversion"

```

TO

```auto
  spec.add_development_dependency "bundler", "~> 2.1.4"
  spec.add_development_dependency "rake", "~> 13.0.1"

```

You can find the latest version of both of these packages by running

```auto
gem install {gemName}

```

and it should tell you which version it installed just take that version number and put it in the gemspec file

Hope this helps someone 😃

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [May 13, 2020, 10:58pm UTC](https://talk.jekyllrb.com/t/cannot-run-theme-after-creating-it/4409/4 "2020-05-13T22:58:21Z")

</div>

Install bundle at the user level

```auto
gem install bundler --user-level

```

Configure in your project before running

```auto
cd project 
bundle config --local path vendor/bundle
bundle install

```
