ppoffice / hexo-theme-icarus

A simple, delicate, and modern theme for the static site generator Hexo.
https://ppoffice.github.io/hexo-theme-icarus/
MIT License
6.28k stars 1.54k forks source link

Script load failed:index.js #1205

Closed Skura-Tea closed 1 year ago

Skura-Tea commented 1 year ago

Describe the bug Script load failed: themes\icarus\scripts\index.js

System and Environment 版本: hexo: 6.3.0 hexo-cli: 4.3.0 os: win32 10.0.22621 node: 20.2.0 acorn: 8.8.2 ada: 2.4.0 ares: 1.19.0 base64: 0.5.0 brotli: 1.0.9 cjs_module_lexer: 1.2.2 cldr: 43.0 icu: 73.1 llhttp: 8.1.0 modules: 115 napi: 8 nghttp2: 1.52.0 nghttp3: 0.7.0 ngtcp2: 0.8.1 openssl: 3.0.8+quic simdutf: 3.2.9 tz: 2023c undici: 5.22.0 unicode: 15.0 uv: 1.44.2 uvwasi: 0.0.16 v8: 11.3.244.8-node.9 zlib: 1.2.13

站点配置除”theme“外与主题配置均为默认

To Reproduce

$ hexo s

INFO Validating config INFO ======================================= ██╗ ██████╗ █████╗ ██████╗ ██╗ ██╗███████╗ ██║██╔════╝██╔══██╗██╔══██╗██║ ██║██╔════╝ ██║██║ ███████║██████╔╝██║ ██║███████╗ ██║██║ ██╔══██║██╔══██╗██║ ██║╚════██║ ██║╚██████╗██║ ██║██║ ██║╚██████╔╝███████║ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝

ERROR Script load failed: themes\icarus\scripts\index.js Error: Cannot find module 'semver' Require stack:

Additional context 使用clean清楚缓存依然存在报错,nodejs版本更新至最新同样无法解决

ppoffice commented 1 year ago

@Skura-Tea 如果你是从源码安装Icarus的话,也要按照提示安装Icarus的依赖。

参考https://github.com/ppoffice/hexo-theme-icarus/issues/805#issuecomment-718458349

Skura-Tea commented 1 year ago

已解决,Thanks