next-theme / hexo-theme-next

🎉 Elegant and powerful theme for Hexo.
https://theme-next.js.org
Other
2.42k stars 428 forks source link

主题设置失败 #458

Closed zuohl closed 2 years ago

zuohl commented 2 years ago

❯ hexo g INFO Validating config INFO ================================== ███╗ ██╗███████╗██╗ ██╗████████╗ ████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝ ██╔██╗ ██║█████╗ ╚███╔╝ ██║ ██║╚██╗██║██╔══╝ ██╔██╗ ██║ ██║ ╚████║███████╗██╔╝ ██╗ ██║ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝

NexT version 8.10.0 Documentation: https://theme-next.js.org

INFO Start processing FATAL { err: Error: ENOENT: no such file or directory, open '/mnt/d/Dev/git_pro/static/blog/node_modules/highlight.js/styles/tomorrow-night.css' at Object.openSync (fs.js:498:3) at Object.readFileSync (fs.js:394:35) at highlightTheme (/mnt/d/Dev/git_pro/static/blog/node_modules/hexo-theme-next/scripts/events/lib/utils.js:19:22) at /mnt/d/Dev/git_pro/static/blog/node_modules/hexo-theme-next/scripts/events/lib/highlight.js:20:13 at Hexo. (/mnt/d/Dev/git_pro/static/blog/node_modules/hexo-theme-next/scripts/events/index.js:13:3) at Hexo.tryCatcher (/mnt/d/Dev/git_pro/static/blog/node_modules/bluebird/js/release/util.js:16:16) at Hexo. (/mnt/d/Dev/git_pro/static/blog/node_modules/bluebird/js/release/method.js:15:34) at /mnt/d/Dev/git_pro/static/blog/node_modules/hexo/lib/extend/filter.js:67:52 at tryCatcher (/mnt/d/Dev/git_pro/static/blog/node_modules/bluebird/js/release/util.js:16:16) at Object.gotValue (/mnt/d/Dev/git_pro/static/blog/node_modules/bluebird/js/release/reduce.js:166:18) at Object.gotAccum (/mnt/d/Dev/git_pro/static/blog/node_modules/bluebird/js/release/reduce.js:155:25) at Object.tryCatcher (/mnt/d/Dev/git_pro/static/blog/node_modules/bluebird/js/release/util.js:16:16) at Promise._settlePromiseFromHandler (/mnt/d/Dev/git_pro/static/blog/node_modules/bluebird/js/release/promise.js:547:31) at Promise._settlePromise (/mnt/d/Dev/git_pro/static/blog/node_modules/bluebird/js/release/promise.js:604:18) at Promise._settlePromiseCtx (/mnt/d/Dev/git_pro/static/blog/node_modules/bluebird/js/release/promise.js:641:10) at _drainQueueStep (/mnt/d/Dev/git_pro/static/blog/node_modules/bluebird/js/release/async.js:97:12) at _drainQueue (/mnt/d/Dev/git_pro/static/blog/node_modules/bluebird/js/release/async.js:86:9) at Async._drainQueues (/mnt/d/Dev/git_pro/static/blog/node_modules/bluebird/js/release/async.js:102:5) at Immediate.drainQueues (/mnt/d/Dev/git_pro/static/blog/node_modules/bluebird/js/release/async.js:15:14) at process.processImmediate (internal/timers.js:464:21) { errno: -2, syscall: 'open', code: 'ENOENT', path: '/mnt/d/Dev/git_pro/static/blog/node_modules/highlight.js/styles/tomorrow-night.css' } } Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html

welcome[bot] commented 2 years ago

Thanks for opening this issue, maintainers will get back to you as soon as possible!

zuohl commented 2 years ago

❯ hexo --version INFO Validating config INFO ================================== ███╗ ██╗███████╗██╗ ██╗████████╗ ████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝ ██╔██╗ ██║█████╗ ╚███╔╝ ██║ ██║╚██╗██║██╔══╝ ██╔██╗ ██║ ██║ ╚████║███████╗██╔╝ ██╗ ██║ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝

NexT version 8.10.0 Documentation: https://theme-next.js.org

hexo: 6.0.0 hexo-cli: 4.3.0 os: linux 5.10.60.1-microsoft-standard-WSL2 Ubuntu 20.04.3 LTS (Focal Fossa) node: 14.17.6 v8: 8.4.371.23-node.76 uv: 1.41.0 zlib: 1.2.11 brotli: 1.0.9 ares: 1.17.2 modules: 83 nghttp2: 1.42.0 napi: 8 llhttp: 2.1.3 openssl: 1.1.1l cldr: 39.0 icu: 69.1 tz: 2021a unicode: 13.0

ljcbaby commented 2 years ago

与 #456 相同,已经在 https://github.com/next-theme/hexo-theme-next/commit/6fd36d9ab446fcfaf7357ed9f90c5c1e06115046 https://github.com/next-theme/hexo-theme-next/commit/2094a764d6da6eaac3ce6c36b5910bab1c22193f 中解决,请更新主题到最新并修改配置文件中的默认codeblock.theme.dark

github-actions[bot] commented 2 years ago

This issue has been closed because it does not meet our Issue template. Please read our guidelines for contributing.

github-actions[bot] commented 1 year ago

This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.