Bundler::GemNotFound: Could not find rake-10.3.2 in any of the sources

后端 未结 6 1679
执念已碎
执念已碎 2020-12-02 10:35

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

相关标签:
6条回答
  • 2020-12-02 10:55

    I solved that deleting the Gemfile.lock

    0 讨论(0)
  • 2020-12-02 10:58

    **

    bundle install --no-deployment

    **

    $ jekyll help

    jekyll 4.0.0 -- Jekyll is a blog-aware, static site generator in Ruby

    0 讨论(0)
  • 2020-12-02 11:00

    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.

    0 讨论(0)
  • 2020-12-02 11:04

    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...

    0 讨论(0)
  • 2020-12-02 11:10
    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.

    0 讨论(0)
  • 2020-12-02 11:20

    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.

    0 讨论(0)
提交回复
热议问题