“ bundle exec jekyll new。”产生“无法找到Gemfile或.bundle /目录”

问题描述 投票:0回答:1

[尝试遵循本指南:https://help.github.com/en/github/working-with-github-pages/creating-a-github-pages-site-with-jekyll

...但是当我运行以下任何命令时:

$ bundle exec jekyll VERSION new .
$ bundle exec jekyll _4.0.0_ new .
$ bundle exec jekyll 4.0.0 new .

我收到此错误:“无法找到Gemfile或.bundle /目录”

我看过几则与此错误消息相关的帖子,但似乎都没有解决我的问题的方法。也许我错过了什么?

一些相关细节:

$ ruby -v
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
$ jekyll -v
jekyll 4.0.0
$ type rvm | head -n 1
rvm is a function
$  lsb_release -a
LSB Version:    core-11.0.1ubuntu1-noarch:printing-11.0.1ubuntu1-noarch:security-11.0.1ubuntu1-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 19.10
Release:    19.10
Codename:   eoan
ruby jekyll rvm bundler gemfile
1个回答
0
投票

嗯...似乎GitHub演练忽略了这些命令。 Bundler documention已通过:

此命令对于创建Gemfile是必需的:

$ bundle init

...和这个用Jekyll填充的人:

$ bundle add jekyll

...所以当我重新运行设置命令时,它起作用了:

$ bundle exec jekyll _4.0.0_ new . --force
© www.soinside.com 2019 - 2024. All rights reserved.