我尝试设置新的Jekyll网站,并在使用jekyll new testSite
创建新网站后遇到问题。
我收到错误说:
New jekyll site installed in /Users/myPath.
Dependency Error: Yikes! It looks like you don't have bundler or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- bundler' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
jekyll 3.3.1 | Error: bundler
我已经使用gem install bundler
安装了捆绑包,但它似乎无法找到它。
bundler -v
提供Bundler version 1.14.2
jekyll -v
提供jekyll 3.3.1
提前致谢!
答案 0 :(得分:1)
testSite
文件夹内运行:
bundle
bundle
(或bundle install
,cf。bundler doc)将安装Gemfile中指定的依赖项。
然后运行您的新网站:
bundle exec jekyll s
答案 1 :(得分:0)
以下命令对我有用,在ubuntu中。
sudo apt install ruby-bundler