Skip to content
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 generates empty files #4268

Closed
5 tasks done
honkiko opened this issue Apr 25, 2020 · 8 comments
Closed
5 tasks done

hexo generates empty files #4268

honkiko opened this issue Apr 25, 2020 · 8 comments
Labels
duplicate This issue or pull request already exists

Comments

@honkiko
Copy link

honkiko commented Apr 25, 2020

Check List

Please check followings before submitting a new issue.

  • I have already read Docs page & Troubleshooting page
  • I have already searched existing issues and they are not help to me
  • I examined error or warning messages and it's difficult to solve
  • Using the latest version of Hexo (run hexo version to check)
  • Node.js is higher than 8.6.0

Expected behavior

generates site like before

Actual behavior

generates emtpy files

How to reproduce?

I have gh pages repo https://github.com/TencentCloudContainerTeam/TencentCloudContainerTeam.github.io, and build from develop branch by travis-ci.org. "hexo g" is called from .travis.yml(https://github.com/TencentCloudContainerTeam/TencentCloudContainerTeam.github.io/blob/develop/.travis.yml).

The CI setup works for last 2 years. But yesterday empty files are pushed into master branch.
The travis-ci build log: https://api.travis-ci.org/v3/job/679426727/log.txt

I'm not sure the travis online log is accessible by others. So I also uploaded a copy.
travis-hexo-generates-empty-files.log

Environment & Settings

Node.js & npm version

node v14.0.0
npm v6.14.4

Your site _config.yml (Optional)

https://github.com/TencentCloudContainerTeam/TencentCloudContainerTeam.github.io/blob/develop/_config.yml

Your theme _config.yml (Optional)

https://github.com/TencentCloudContainerTeam/TencentCloudContainerTeam.github.io/blob/develop/themes/landscape/_config.yml

Hexo and Plugin version(npm ls --depth 0)

travis-ci.org

Your package.json package.json

https://github.com/TencentCloudContainerTeam/TencentCloudContainerTeam.github.io/blob/develop/package.json

Others

@dumindu
Copy link

dumindu commented Apr 28, 2020

@stevenjoezhang Using v 12.5.0 via nvm on mac. But still having same issue while running hexojs/site. Any other settings/ package version I need to change?
Thanks

This was referenced May 2, 2020
@asad-awadia
Copy link

@dumindu I had to downgrade to 10.19.0

@dumindu
Copy link

dumindu commented Dec 20, 2020

I think this issue is fixed even in current version. Check the implementation of hexo site repo.

@asad-awadia
Copy link

@dumindu version of what? Node or hexo?

lotem added a commit to rime/home that referenced this issue Dec 22, 2020
lotem added a commit to rime/home that referenced this issue Dec 22, 2020
lotem added a commit to rime/home that referenced this issue Dec 22, 2020
Abreto added a commit to Abreto/sb that referenced this issue Dec 10, 2021
@shawumu
Copy link

shawumu commented Dec 12, 2021

is this problem solved? I was encountered the same issue.I've tried hexo version 3.2~3.9,and it does not work. hexo generate every file with empty content.

@stevenjoezhang
Copy link
Member

Hexo 3.9 is outdated. Install version 5.4.0

@edgexie
Copy link

edgexie commented Jun 30, 2022

Hexo 3.9 is outdated. Install version 5.4.0

thanks , it's help me

@khiav223577
Copy link

Update hexo from v3.8.0 to v6.3.0 solved my problem (Note that v3.9.0 doesn't work)

Update command:

npm install hexo@6

My Environment

  • npm: v8.19.3
  • node: v16.20.1

khiav223577 pushed a commit to khiav223577/blog that referenced this issue Aug 1, 2023
noob9527 added a commit to noob9527/noob9527.github.io that referenced this issue Jun 29, 2024
try fix generate empty file issue
hexojs/hexo#4268
noob9527 added a commit to noob9527/noob9527.github.io that referenced this issue Jun 29, 2024
try fix generate empty file issue
hexojs/hexo#4268
noob9527 added a commit to noob9527/noob9527.github.io that referenced this issue Jul 7, 2024
try fix generate empty file issue hexojs/hexo#4268
remove page.permalink?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

8 participants