简体   繁体   中英

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 .

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.

bundler -v gives Bundler version 1.14.2

jekyll -v gives jekyll 3.3.1

Thanks in advance!

given that you have ruby, jekyll and blunder correctly installed. inside testSite folder run:

bundle

bundle (or bundle install , cf. bundler doc ) will Install the dependencies specified in your Gemfile.

then run your new website, with:

bundle exec jekyll s

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

sudo apt install ruby-bundler

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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