Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundle exec jekyll serve #27

Open
realalexhomer opened this issue Mar 21, 2015 · 2 comments
Open

bundle exec jekyll serve #27

realalexhomer opened this issue Mar 21, 2015 · 2 comments

Comments

@realalexhomer
Copy link

When using bundler, jekyll serve --watch results in an error:

WARN: Unresolved specs during Gem::Specification.reset:
redcarpet (~> 3.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
/usr/local/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/bin/jekyll:21:in block in <top (required)>': cannot load such file -- jekyll/version (LoadError) from /usr/local/lib/ruby/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary.rb:18:inprogram'
from /usr/local/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/bin/jekyll:20:in <top (required)>' from /usr/local/bin/jekyll:23:inload'
from /usr/local/bin/jekyll:23:in `

'

The correct command to run a local server is bundle exec jekyll serve. Just thought you might want to update the readme for people new to bundler.

Thanks for the great tool!

@hanserino
Copy link

@realalexhomer Thank you so much! You forgot to mention that you have to install Bundler before you can do such a thing. $ gem install bundler + $ bundle install and then you can run $ bundle exec jekyll serve.

@sarahciston
Copy link

Not sure if my issue is related to this old issue but when running bundler jekyll serve --watch I get a similar error:

require': cannot load such file -- webrick (LoadError) from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve/servlet.rb:3:in <top (required)>'

Was this one resolved? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants