美文网首页
(完成)Jekyll build 报错

(完成)Jekyll build 报错

作者: 偷油考拉 | 来源:发表于2021-09-11 23:30 被阅读0次

    报错信息如下:
    /opt/rubies/ruby-2.7.3/lib/ruby/2.7.0/bundler/runtime.rb:312:in `check_for_activated_spec!': You have already activated rexml 3.2.3.1, but your Gemfile requires rexml 3.2.5. Since rexml is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports rexml as a default gem. (Gem::LoadError)

    检查当前状态

    [jekyll@VM_1_5_centos myblog]$ gem list  |grep rexml
    rexml (default: 3.2.3.1)
    
    [jekyll@VM_1_5_centos myblog]$ bundle info --path rexml
    /home/jekyll/myblog/vendor/bundle/ruby/2.7.0/gems/rexml-3.2.5
    

    尝试卸载失败

    [jekyll@VM_1_5_centos myblog]$ gem uninstall rexml
    Gem rexml-3.2.3.1 cannot be uninstalled because it is a default gem
    

    修复故障

    [root@VM_1_5_centos myblog]# gem install rexml -v 3.2.5
    Fetching rexml-3.2.5.gem
    Successfully installed rexml-3.2.5
    Parsing documentation for rexml-3.2.5
    Installing ri documentation for rexml-3.2.5
    Done installing documentation for rexml after 1 seconds
    1 gem installed
    [root@VM_1_5_centos myblog]# gem list |grep rexml
    rexml (3.2.5, default: 3.2.3.1)
    

    相关文章

      网友评论

          本文标题:(完成)Jekyll build 报错

          本文链接:https://www.haomeiwen.com/subject/xoiirltx.html