How to fix the error [Failed to launch the site preview in 30 seconds] in Blogdown?

76 Views Asked by At

I'm trying to build a website using blogdown on my windows 10 laptop and when I run blogdown::serve_site(), Rstudio tells me:

Launching the server via the command: C:/Users/Tuan/AppData/Roaming/Hugo/0.109.0/hugo.exe server --bind 127.0.0.1 -p 4321 --themesDir themes -D -F --navigateToChanged SUCCESS: The process with PID 808 (child process of PID 7592) has been terminated. SUCCESS: The process with PID 7592 (child process of PID 9480) has been terminated.

And also this error:

Error: Failed to launch the site preview in 30 seconds. Try to give it more time via the global option "blogdown.server.timeout", e.g., options(blogdown.server.timeout = 600).

I've tried restart R, reinstalling blogdown and updating packages but it's still the same.

How can I get rid of this?

Thank you.

0

There are 0 best solutions below