How to run “bundle exec jekyll new .”

后端 未结 1 1819
长发绾君心
长发绾君心 2021-02-13 10:17

I\'m trying to follow \"Creating a GitHub Pages site with Jekyll\" but when I run any of these commands:

$ bundle exec jekyll VERSION new .
$ bundle exec jekyll          


        
1条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-13 11:19

    The GitHub walk-through left these commands out, but Bundler's bundle init explains it:

    This command is necessary to create the Gemfile:

    $ bundle init
    

    and this one to populate it with Jekyll:

    $ bundle add jekyll
    

    so that when I re-ran my setup command, it worked:

    $ bundle exec jekyll 4.0.0 new . --force
    

    The specific version of jekyll that GitHub uses can be found here.

    0 讨论(0)
提交回复
热议问题