繁体   English   中英

找不到Jekyll博客的捆绑软件gem

[英]Cannot find bundler gem for a Jekyll blog

我正在尝试建立一个新的Jekyll网站,并且在使用jekyll new testSite创建一个新网站后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

提前致谢!

假设您已正确安装红宝石,jekyll和blunder。 testSite文件夹中运行:

bundle

bundle (或bundle install ,请参阅bundler doc )将安装Gemfile中指定的依赖项。

然后使用以下命令运行您的新网站:

bundle exec jekyll s

以下命令在ubuntu中为我工作。

sudo apt install ruby-bundler

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM