hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
38.82k stars 4.75k forks source link

编译后,发布时多了一个不存在的空文件 #5438

Closed itl-coder closed 2 months ago

itl-coder commented 3 months ago

Check List

Expected behavior

编译后多了一个空文件,文件在本地不存在,编译后就会出现

Actual behavior

image image image

How to reproduce?

未知情况下发生的

Is the problem still there under Safe mode?

no

Your Node.js & npm version

C:\Users\coderitl>node -v
v18.19.0

C:\Users\coderitl>npm -v
10.5.0

C:\Users\coderitl>

Your Hexo and Plugin version

D:\itl-coder-hexo>npm ls --depth 0
hexo-site@0.0.0 D:\itl-coder-hexo
+-- hexo-abbrlink@2.2.1
+-- hexo-admonition@1.1.2
+-- hexo-blog-encrypt@3.1.9
+-- hexo-browsersync@0.3.0
+-- hexo-butterfly-clock@1.0.7
+-- hexo-butterfly-footer-beautify@1.0.6
+-- hexo-butterfly-swiper@1.0.12
+-- hexo-butterfly-tag-plugins-plus@1.0.17
+-- hexo-deployer-git@4.0.0
+-- hexo-generator-archive@2.0.0
+-- hexo-generator-category@2.0.0
+-- hexo-generator-index@3.0.0
+-- hexo-generator-search@2.4.3
+-- hexo-generator-tag@2.0.0
+-- hexo-hide-posts@0.4.0
+-- hexo-renderer-ejs@2.0.0
+-- hexo-renderer-kramed@0.1.4
+-- hexo-renderer-pug@3.0.0
+-- hexo-renderer-stylus@3.0.0
+-- hexo-server@3.0.0
+-- hexo-theme-landscape@1.0.0
`-- hexo@7.0.0

Your package.json

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "build": "hexo generate",
    "clean": "hexo clean",
    "deploy": "hexo deploy",
    "server": "hexo server"
  },
  "hexo": {
    "version": "7.0.0"
  },
  "dependencies": {
    "hexo": "^7.0.0",
    "hexo-abbrlink": "^2.2.1",
    "hexo-admonition": "^1.1.2",
    "hexo-blog-encrypt": "^3.1.9",
    "hexo-browsersync": "^0.3.0",
    "hexo-butterfly-clock": "^1.0.7",
    "hexo-butterfly-footer-beautify": "^1.0.6",
    "hexo-butterfly-swiper": "^1.0.12",
    "hexo-butterfly-tag-plugins-plus": "^1.0.17",
    "hexo-deployer-git": "^4.0.0",
    "hexo-generator-archive": "^2.0.0",
    "hexo-generator-category": "^2.0.0",
    "hexo-generator-index": "^3.0.0",
    "hexo-generator-search": "^2.4.3",
    "hexo-generator-tag": "^2.0.0",
    "hexo-hide-posts": "^0.4.0",
    "hexo-renderer-ejs": "^2.0.0",
    "hexo-renderer-kramed": "^0.1.4",
    "hexo-renderer-pug": "^3.0.0",
    "hexo-renderer-stylus": "^3.0.0",
    "hexo-server": "^3.0.0",
    "hexo-theme-landscape": "^1.0.0"
  }
}

Your site's _config.yml (Optional)

No response

Others

No response

uiolee commented 3 months ago

If your problem disappear under "Safe mode", it means the problem is probably at your installed plugins or theme, not at hexo.

itl-coder commented 3 months ago

image an'qua安全模式下依然存在该问题,没有找到解决方法

uiolee commented 3 months ago

You are not running in safe mode correctly.

hexo clean 
hexo g --safe
hexo s --safe
uiolee commented 2 months ago

Because it cannot be reproduced and no one provides enough information, I am going to close this issue.

If the problem still exists, please reopen this issue and provide more information.