我用过sudo bundle install
,那可能是问题的原因?
我现在有:
gem -v
2.6.14ruby -v
红宝石2.3.5p376(2017-09-14修订版59905)[x86_64-darwin15]jekyll -v
杰基尔3.6.2bundle -v
Bundler版本1.16.0.pre.3
尝试运行时bundle exec jekyll serve
或刚出现以下错误jekyll serve
/Users/myusername/.rvm/rubies/ruby-2.3.5/lib/ruby/site_ruby/2.3.0/rubygems.rb:271:in `find_spec_for_exe': can't find gem bundler (>= 0.a) (Gem::GemNotFoundException)
from /Users/myusername/.rvm/rubies/ruby-2.3.5/lib/ruby/site_ruby/2.3.0/rubygems.rb:299:in `activate_bin_path'
from /Users/myusername/.rvm/gems/ruby-2.3.5/bin/bundle:23:in `<main>'
from /Users/myusername/.rvm/gems/ruby-2.3.5/bin/ruby_executable_hooks:15:in `eval'
from /Users/myusername/.rvm/gems/ruby-2.3.5/bin/ruby_executable_hooks:15:in `<MacBooMacBook-MacBook-MacBook-Pro-MacBook-PrMacBook-MacBooMacBMaMacBMaMaMaMaMaMaMaMaMacBMaMaMaMacBMa
另外,访问我拥有博客的文件夹时,还会cd my_path
收到以下消息:
VM使用您的Gemfile选择Ruby,这一切都很好-Heroku也这样做,您可以使用“ rvm rvmrc warning ignore / Library / WebServer / Documents / blog / Gemfile”忽略这些警告。要忽略所有文件的警告,请运行“ rvm rvmrc warning ignore allGemfiles”。未知的红宝石解释器版本(不知道如何处理):RUBY_VERSION。
我不知道该如何解决。我只想创建我的静态博客,并且老实说我对Ruby,Gem或Bundle不了解:)因此,我希望能获得一些见解!