最近研究用Hexo来搭博客。再换了个next theme后,执行任何hexo命令后都会得到一个Error提示:
Error: Cannot find module 'hexo-util'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (/home/CORPUSERS/xp014256/workspace1/blog-test/node_modules/hexo/lib/hexo/index.js:216:21)
at /home/CORPUSERS/xp014256/workspace1/blog-test/themes/next/scripts/tags/exturl.js:8:12
at /home/CORPUSERS/xp014256/workspace1/blog-test/node_modules/hexo/lib/hexo/index.js:232:12
...
查了下原因很简单只要运行一个命令安装下就可以:
npm install hexo-util --save
原博客地址:https://blog.youkuaiyun.com/xiongshengwu/article/details/60961073
本文介绍了使用Hexo搭建博客过程中遇到的问题及解决方案。当更换Next主题后执行Hexo命令出现错误提示,通过安装hexo-util模块即可修复该问题。
3284

被折叠的 条评论
为什么被折叠?



