-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hexo deploy error #4281
Comments
nodejs 12.5.0 is working |
@stephen-a2z I tried exact v12.5.0. But this(hexojs/site) generates empty files with partial template block codes. Any idea how to avoid that? |
I have the same issues. |
I made it work on Node 8.17.0 and Hexo 3.9.0. |
Fix released in hexo-util@2.0.0 and hexo-fs@3.0.0. There are two options to temporarily fix compatibility issues with Node 14:
package.json
{
...
"dependencies": {
"hexo": "^4.0.0",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-index": "^1.0.0",
"hexo-generator-tag": "^1.0.0",
"hexo-renderer-ejs": "^1.0.0",
"hexo-renderer-stylus": "^1.1.0",
"hexo-renderer-marked": "^2.0.0",
"hexo-server": "^1.0.0",
+ "hexo-util": "^2.1.0",
+ "hexo-fs": "^3.0.1"
}
}
|
I tried to update my dependencies according to the @curbengh comment, but I still received some errors and it didn't work. With the following dependencies and node v.
Regards |
I tried to continue to use hexo by downgrading node, he did work normally for a few days but since archlinux was upgraded yesterday, some of the node.js dependencies have also been upgraded, which means that if I continue to use the old version of node, all libraries which node.js is dependent on need to be downgraded, which I think is unacceptable. Hope that the official can release the solution as soon as possible.
|
@Reverier-Xu @stephen-a2z @dumindu @pwittchen We published v4.2.1. Thanks :) |
Thanks, but on my computer I still get errors with Node 14.0.0 and Hexo 4.2.1 error message looks like this:
and empty files are generated. Nevertheless, it works fine on Node 8.17.0 |
I have been updated Hexo to the v4.2.1. |
@pwittchen @THE-NAMELESS-SPECTRE // package.json
"dependencies": {
- "hexo": "^4.2.0",
+ "hexo": "^4.2.1", After that please update your package and check your hexo version like below.
|
Yes. Here's my
This is my output from
I checked it on Node v. 8.17.0, v. 12.6.3 and 13.14.0 and it works on these versions. It has problems with Node v. 14.0.0 and 14.2.0 (the latest one) only (so 14.x in general). |
Hmm... Are your If yes, which problem is occurring? |
My situation is the same as him.
|
@WinterSoHot We are already released I think, after re-install |
Thanks. I have solved this problem by your advice. |
@yoshinorin Thank you. |
when I tried to deploy my blog it shows:
hexo s
andhexo g
both work well and generate properly.How to solve this problem?
It may not be caused by themes, I tried three themes and they all have this problem.
the _config.yml of ny blog:
The text was updated successfully, but these errors were encountered: