$ hexo g
ERROR Script load failed: themes\next\scripts\tags\exturl.js
Error: Cannot find module 'hexo-util'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (D:\myblog-hexo\node_modules\hexo\lib\hexo\index.js:213:21)
at D:\myblog-hexo\themes\next\scripts\tags\exturl.js:7:12
at D:\myblog-hexo\node_modules\hexo\lib\hexo\index.js:229:12
at tryCatcher (D:\myblog-hexo\node_modules\hexo\node_modules\bluebird\js\rel
ease\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\myblog-hexo\node_modules\hexo\node_
modules\bluebird\js\release\promise.js:502:31)
at Promise._settlePromise (D:\myblog-hexo\node_modules\hexo\node_modules\blu
ebird\js\release\promise.js:559:18)
at Promise._settlePromise0 (D:\myblog-hexo\node_modules\hexo\node_modules\bl
uebird\js\release\promise.js:604:10)
at Promise._settlePromises (D:\myblog-hexo\node_modules\hexo\node_modules\bl
uebird\js\release\promise.js:683:18)
at Promise._fulfill (D:\myblog-hexo\node_modules\hexo\node_modules\bluebird\
js\release\promise.js:628:18)
at Promise._resolveCallback (D:\myblog-hexo\node_modules\hexo\node_modules\b
luebird\js\release\promise.js:423:57)
at Promise._settlePromiseFromHandler (D:\myblog-hexo\node_modules\hexo\node_
modules\bluebird\js\release\promise.js:514:17)
at Promise._settlePromise (D:\myblog-hexo\node_modules\hexo\node_modules\blu
ebird\js\release\promise.js:559:18)
at Promise._settlePromise0 (D:\myblog-hexo\node_modules\hexo\node_modules\bl
uebird\js\release\promise.js:604:10)
at Promise._settlePromises (D:\myblog-hexo\node_modules\hexo\node_modules\bl
uebird\js\release\promise.js:683:18)
at Promise._fulfill (D:\myblog-hexo\node_modules\hexo\node_modules\bluebird\
js\release\promise.js:628:18)
at D:\myblog-hexo\node_modules\hexo\node_modules\bluebird\js\release\nodebac
k.js:42:21
at D:\myblog-hexo\node_modules\hexo\node_modules\hexo-fs\node_modules\gracef
ul-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
Add the ✔ sign before an item which is affected by this behavior.
NexT Version:
NexT Scheme:
参照这篇文章解决
@Neveryu 谢谢你给的提示!~
$ npm install -- save-dev hexo-util
/
> [email protected] postinstall D:\myblog-hexo\node_modules\hexo-util
> npm run build:highlight
> [email protected] build:highlight D:\myblog-hexo\node_modules\hexo-util
> node scripts/build_highlight_alias.js > highlight_alias.json
[email protected] node_modules\save-dev
[email protected] node_modules\hexo-util
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected])
重新安装模块后,hexo clean hexo d 等操作都不会报错了!~!~
@aixiu 参照你给出的方法完美解决,多谢
thank you, make it!
Thanks!!!
@aixiu thanks
@aixiu aligado
@aixiu thanks! it works
@aixiu thanks! it works!
perfectly solved
nice
@aixiu thanks!had resolved
@aixiu ,thanks very much
Most helpful comment
@Neveryu 谢谢你给的提示!~
重新安装模块后,hexo clean hexo d 等操作都不会报错了!~!~