I have been working with Rails and it sends me back this error. Please provide questions. Thanks for all the help. I will update this question with a better one because I do
I solved that deleting the Gemfile.lock
**
bundle install --no-deployment
**
$ jekyll help
jekyll 4.0.0 -- Jekyll is a blog-aware, static site generator in Ruby
Remove your Gemfile.lock.
Move to bash if you are using zsh.
sudo bash
gem update --system
Now run command bundle to create a new Gemfile.lock file.
Move back to your zsh sudo exec zsh
now run your rake commands.
I think rake must be preinstalled if you want work with bundler. Try to install rake via 'gem install' and then run 'bundle install' again:
gem install rake && bundle install
If you are using rvm ( http://rvm.io ) rake is installed by default...
bundle install --path vendor/cache
generally fixes it as that is the more common problem. Basically, your bundler path configuration is messed up. See their documentation (first paragraph) for where to find those configurations and change them manually if needed.
If you're having this issue, and try to run bundle exec jekyll serve
per this Jekyll documentation, it'll ask you to run bundle install
, which should prompt you to install any missing gems, which in this case will be rake
. This should resolve your issue.
You may also need to run bundle update
to ensure Gemfile.lock
is referencing the most up-to-date gems.