Sometimes your hexo environment may get fucked up, may give you the following errors:
ERROR Local hexo not found in /YourProjectPath/
ERROR Try running: ‘npm install hexo --save‘
But running npm install hexo --save
not solving the issue, so try the following solutions:
Solution One:
Try sudo npm install -g hexo
Solution Two:
Try rm -rf node_modules/ && npm install
Solve Error: Local hexo not found in xxx
原文:https://www.cnblogs.com/grandyang/p/14613675.html