Hexo-theme-next: Cannot find module 'hexo-util'

Created on 3 Mar 2017  ·  14Comments  ·  Source: iissnan/hexo-theme-next

Expected behavior (预期行为)

Actual behavior (实际行为)

Steps to reproduce the behavior (重现步骤)

$ 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)

NexT Informations

Add the ✔ sign before an item which is affected by this behavior.

NexT Version:

  • Master
  • Latest Release
  • Old version -

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces

Other Informations (Like Browser, System, Screenshots)

Most helpful comment

@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 等操作都不会报错了!~!~

All 14 comments

Hexo-NexT搭建个人博客(四)

参照这篇文章解决

@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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dev-fancyluo picture dev-fancyluo  ·  3Comments

Nirvanada picture Nirvanada  ·  4Comments

keltoy picture keltoy  ·  3Comments

zhgcao picture zhgcao  ·  3Comments

blueyi picture blueyi  ·  5Comments