
[英]Can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
[英]can't find gem jekyll (>= 0.a) with executable jekyll (Gem::GemNotFoundException)
我正在尝试按照官方网站上的说明使用 github 和 jekyll 制作我的个人网站
当我到达部分时:
jekyll new --skip-bundle
我收到了:
can't find gem jekyll (>= 0.a) with executable jekyll (Gem::GemNotFoundException)
我尝试了几种方法,例如此处提到的方法,然后使用sudo
运行命令。 再次运行jekyll new --skip-bundle
后。
这是按照此处的说明安装后的终端响应
Fetching bundler-2.4.5.gem
Successfully installed bundler-2.4.5
Parsing documentation for bundler-2.4.5
Installing ri documentation for bundler-2.4.5
Done installing documentation for bundler after 0 seconds
1 gem installed
这是我再次运行jekyll new --skip-bundle
时的终端响应:
Traceback (most recent call last):
2: from /usr/local/bin/jekyll:22:in `<main>'
1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:262:in `bin_path'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': can't find gem jekyll (>= 0.a) with executable jekyll (Gem::GemNotFoundException)
如果您能帮助我解决问题,我将不胜感激。
注意:将更新我的答案,因为我还不能评论要求澄清
这是按照此处的说明安装后的终端响应
您正在运行它来安装 Bundler(您可以将其视为 gem 存储)。 在这里你知道对于 jekyll 错误代码,它有同样的问题(它没有找到运行 jekyll 的源代码)。 要解决此问题,请安装 jekyll
如果你想从 bundler 运行 jekyll,试试这个(推荐)参考
bundle add jekyll #This will add jekyll to Gemfile (gem dependencies manager)
bundle install #This will check/install the gem from Gemfile
bundle exec jekyll #This will run jekyll from the bundle
如果不想使用bundle,可以直接安装gem
gem install jekyll
jekyll #this should work and have message related to jekyll
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.