Gemfile配置错误

最近这里几天一直搞Jekyll 一直踩坑jekyll搭建,今天从从ithub
上下载一个新的主题。本地环境运行 jekyll报错,这里在此记录下来希望帮助到以后遇到此问题到小伙伴。

/usr/local/Cellar/ruby/2.6.5/lib/ruby/2.6.0/bundler/runtime.rb:
319:in `check_for_activated_spec!': 
You have already activated i18n 1.7.0, 
but your Gemfile requires i18n 0.9.5. 
Prepending `bundle exec` 
to your command may solve this. (Gem::LoadError)
  • 解决方式升级 bundle update升级相关套件
  • 修改Gemfile配置文件 i18n配置从0.9.5—>改成1.7.0

bundle update如果更新太慢

  • 换ruby源,换成国内的 rubychina
  • 如果你能连到wai网的话很快就下载完
至此,本地已经完全可以跑起来了,不用再上传到github page上去。
发布了58 篇原创文章 · 获赞 9 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/rui888/article/details/103842282