我正在尝试更新一个jekyll博客,并想先在浏览器上查看它。我运行了jekyll serve,得到:
rbenv: jekyll: command not found
The `jekyll' command exists in these Ruby versions:
2.1.0为什么我会有这个错误?我还运行了bundle exec jekyll serve
Could not locate Gemfile or .bundle/ directory如果有帮助,这是echo $PATH的结果
/Users/BLAH/.rbenv/shims:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/aa/npm/bin:/usr/local/share/npm/bin
如果这也有帮助的话,这是rbenv versions的结果
system
1.9.3-p551
2.0.0-p353
2.0.0-p598
2.1.0
* 2.1.4 (set by /Users/BLAH/.rbenv/version)如何使jekyll serve再次工作?
发布于 2016-12-27 03:40:54
我还运行了
bundle exec jekyll serve,结果是:找不到Gemfile或. .bundle/目录
你需要启动服务器。我用以下方法解决问题:
$ jekyll serve
# => A development server will run at http://localhost:4000/
# Auto-regeneration: enabled. Use `--no-watch` to disable.
$ jekyll serve --detach
# => Same as `jekyll serve` but will detach from the current terminal.
# If you need to kill the server, you can `kill -9 1234` where "1234" is the PID.
# If you cannot find the PID, then do, `ps aux | grep jekyll` and kill the instance.https://stackoverflow.com/questions/28886195
复制相似问题