npm not working after clearing cache

前端 未结 11 1003
南笙
南笙 2020-12-12 12:53

Before clearing cache

npm cache clear

npm is working fine. After clearing cache, it is not working. The error log below suggest problem wi

11条回答
  •  死守一世寂寞
    2020-12-12 13:30

    I try to

    npm cache clean 
    

    But npm said newer version on npm (> 5) has self healing Mechanism and every thing i need to do for checking npm is use verify

    npm cache verify
    

    npm message :

    The npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. 
    
    If you want to make sure everything is consistent, use 'npm cache verify' instead.
    

    but for forcing npm use this:

    npm cache clean --force
    

提交回复
热议问题