if you run hexo g
and there nothing new in public folder, you can check the version of nodejs.
In my case, I first use hexo in nodejs version 20.16.0, it is a LTS version and hexo support it.
But when i update nodejs to 22.6.0(latest), command hexo g
can not work ,it just leave some empty folder in public and no any error debug even i use hexo g --debug
So if you has similar problem, you can switch you nodejs version to the LTS.