git - $ hexo clean ERROR Local hexo not found

浏览:24日期:2023-09-02

问题描述

$ hexo cleanERROR Local hexo not found in G:testERROR Try running: ’npm install hexo --save’

请问如何解决

问题解答

回答1:

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

回答2:

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

以上,解决了。

相关文章: