Closed yoval closed 2 years ago
λ hexo -v
INFO Validating config hexo: 5.4.0 hexo-cli: 4.3.0 os: win32 10.0.19042 node: 17.2.0 v8: 9.6.180.14-node.12 uv: 1.42.0 zlib: 1.2.11 brotli: 1.0.9 ares: 1.18.1 modules: 102 nghttp2: 1.45.1 napi: 8 llhttp: 6.0.4 openssl: 3.0.0+quic cldr: 40.0 icu: 70.1 tz: 2021a3 unicode: 14.0 ngtcp2: 0.1.0-DEV nghttp3: 0.1.0-DEV
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": "5.4.0" }, "dependencies": { "hexo": "^5.4.0", "hexo-generator-archive": "^1.0.0", "hexo-generator-category": "^1.0.0", "hexo-generator-index": "^2.0.0", "hexo-generator-tag": "^1.0.0", "hexo-renderer-ejs": "^2.0.0", "hexo-renderer-marked": "^4.1.0", "hexo-renderer-stylus": "^2.0.1", "hexo-server": "^2.0.0", "hexo-theme-landscape": "^0.0.3" } }
λ npm install hexo-theme-webstack -S
npm ERR! code 1 npm ERR! path D:\OneDrive\hexo\Mynav\node_modules\hexo-theme-webstack npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./move_config.js npm ERR! D:\OneDrive\hexo\Mynav\node_modules\hexo-theme-webstack\move_config.js:5 npm ERR! if (version.split('.')[0].imcludes('5')) { npm ERR! ^ npm ERR! npm ERR! TypeError: version.split(...)[0].imcludes is not a function npm ERR! at Object.<anonymous> (D:\OneDrive\hexo\Mynav\node_modules\hexo-theme-webstack\move_config.js:5:29) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1097:14) npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10) npm ERR! at Module.load (node:internal/modules/cjs/loader:975:32) npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:822:12) npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) npm ERR! at node:internal/main/run_main_module:17:47 npm ERR! npm ERR! Node.js v17.2.0 npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Mypc\AppData\Local\npm-cache\_logs\2021-12-21T22_19_25_536Z-debug-0.log
λ hexo -v
package.json
λ npm install hexo-theme-webstack -S