I recently researched using Hexo to build a blog. After changing the next theme, you will get an Error message after executing any hexo command:
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 ...
The reason is very simple to check, just run a command to install it:
npm install hexo-util --save
Original blog address: https://blog.csdn.net/xiongshengwu/article/details/60961073