首页 > 解决方案 > 如何修复 Blogdown::serve_site() 超时错误?

问题描述

我已经尝试了我在网上找到的解决方案,但它们似乎都不起作用......

即使从 github 安装 blogdown 并更新了 hugo,我也会收到超时错误。 remotes::install_github('rstudio/blogdown') blogdown::update_hugo()

也就是说,当我运行时出现blogdown::serve_site此错误:

Launching the server via the command: C:\Users\Master\AppData\Roaming\Hugo\hugo.exe server --bind 127.0.0.1 -p 4321 --themesDir themes -t hugo-future-imperfect -D -F --navigateToChanged ERROR: The process "10244" not found. Error: It took more than 30 seconds to launch the server. There may be something wrong. The process has been killed. If the site needs more time to be built and launched, set options(blogdown.server.timeout) to a larger value.

还有其他方法可以解决这个问题吗?是什么导致了这个错误?

谢谢!

标签: r-markdownblogdown

解决方案


我在 Kubuntu 20.10 上遇到了同样的问题。我几天前安装了最新的 blogdown 和 hugo。我在 Kubuntu 上有 blogdown 0.21.47 和 hugo 0.79.0。最后,我找到了修复它的方法。

  1. 关闭工作室
  2. 打开终端
  3. 输入您网站的目录
  4. 执行hugo server -D
  5. 按下Ctrl C停止
  6. 打开工作室
  7. 点击Addin -> BLOGDOWN -> Serve Site

我不知道它为什么有效,也不知道它是否适用于您的情况。请测试它并让我们知道它是否有效。


推荐阅读