search

Home  >  Q&A  >  body text

git - $ hexo clean ERROR Local hexo not found

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

How to solve it

巴扎黑巴扎黑2790 days ago948

reply all(2)I'll reply

  • 某草草

    某草草2017-05-02 09:50:28

    It has been solved. There is .git in the internal file, so if this error occurs, just delete it

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-02 09:50:28

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

    以上,解决了。

    reply
    0
  • Cancelreply