Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'hexo-util' #1480

Closed
aixiu opened this issue Mar 3, 2017 · 14 comments
Closed

Cannot find module 'hexo-util' #1480

aixiu opened this issue Mar 3, 2017 · 14 comments

Comments

@aixiu
Copy link

aixiu commented Mar 3, 2017

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)

@Neveryu
Copy link

Neveryu commented Mar 3, 2017

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

参照这篇文章解决

@aixiu
Copy link
Author

aixiu commented Mar 3, 2017

@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 aixiu closed this as completed Mar 3, 2017
@yuzhiping
Copy link

@aixiu 参照你给出的方法完美解决,多谢

@iissnan
Copy link
Owner

iissnan commented Mar 16, 2017

Refer to #1490

@iissnan iissnan changed the title 求解 Cannot find module 'hexo-util' Mar 16, 2017
@jetyu
Copy link

jetyu commented Mar 22, 2017

thank you, make it!

@ghost
Copy link

ghost commented Mar 29, 2017

Thanks!!!

@charsdavy
Copy link

@aixiu thanks

@gyqsophila
Copy link

@aixiu aligado

@eliiik
Copy link

eliiik commented Apr 17, 2017

@aixiu thanks! it works

@junbinchencn
Copy link

@aixiu thanks! it works!

@daiyongya
Copy link

perfectly solved

@wangwangchen
Copy link

nice

@miniLV
Copy link

miniLV commented Sep 6, 2017

@aixiu thanks!had resolved

@duomu
Copy link

duomu commented Sep 22, 2017

@aixiu ,thanks very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests