$ hexo clean ERROR Local hexo not found

$ hexo clean
ERROR Local hexo not found in G:test
ERROR Try running: 'npm install hexo --save'

请问如何解决

阅读 6.6k
3 个回答

已经解决,内部文件里面还有.git,所以出现该错误,删除即可

A solution that worked for me to is removing the node_modules/ directory and reinstall it, so run:
rm -rf node_modules/ && npm install

以上,解决了。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题