r-markdown - 如何修复 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.
还有其他方法可以解决这个问题吗?是什么导致了这个错误?
谢谢!
解决方案
我在 Kubuntu 20.10 上遇到了同样的问题。我几天前安装了最新的 blogdown 和 hugo。我在 Kubuntu 上有 blogdown 0.21.47 和 hugo 0.79.0。最后,我找到了修复它的方法。
- 关闭工作室
- 打开终端
- 输入您网站的目录
- 执行
hugo server -D
- 按下
Ctrl C
停止 - 打开工作室
- 点击
Addin -> BLOGDOWN -> Serve Site
我不知道它为什么有效,也不知道它是否适用于您的情况。请测试它并让我们知道它是否有效。
推荐阅读
- latex - 使用 BibTeX 时的编译器错误
- r - 在R中的对称矩阵中同时选择行和列
- apache-spark - 带有企业安全包的 HDInsight 上的 Zeppelin 笔记本
- android - Android布局textview右对齐xonsideing最大尺寸
- excel - 使用 LBound 和 UBound 检查一个列表与另一个列表 (VBA)。或任何有效的方式
- javascript - Javascript动态构建带有按钮单元的HTML表格
- java - What is the correct restful API design when we have optional behavior?
- c# - 是否可以在 Excel 中运行 QuickBooks SDK?
- python - 在 'ForeignKey' 的 django 标签中使用 'for' 循环
- sql - Oracle 12c - 删除记录