简体   繁体   English

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

[英]Cannot find bundler gem for a Jekyll blog

I'm trying to setup a new Jekyll site and am running into issues after I create a new site using jekyll new testSite . 我正在尝试建立一个新的Jekyll网站,并且在使用jekyll new testSite创建一个新网站后jekyll new testSite

I get an error saying: 我收到一条错误消息:

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

I've installed bundler already using gem install bundler , but it can't seem to find it. 我已经使用gem install bundler ,但是似乎找不到它。

bundler -v gives Bundler version 1.14.2 bundler -v给出Bundler version 1.14.2

jekyll -v gives jekyll 3.3.1 jekyll -v给出jekyll 3.3.1

Thanks in advance! 提前致谢!

given that you have ruby, jekyll and blunder correctly installed. 假设您已正确安装红宝石,jekyll和blunder。 inside testSite folder run: testSite文件夹中运行:

bundle

bundle (or bundle install , cf. bundler doc ) will Install the dependencies specified in your Gemfile. bundle (或bundle install ,请参阅bundler doc )将安装Gemfile中指定的依赖项。

then run your new website, with: 然后使用以下命令运行您的新网站:

bundle exec jekyll s

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

sudo apt install ruby-bundler

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

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