最近研究用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.csdn.net/xiongshengwu/article/details/60961073