npm not working after clearing cache

前端 未结 11 995
南笙
南笙 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:27

    I solved this issue by running cmd as an administrator. before that, I was trying to run in vs code.

    run it in Power Shell or Cmd with administrative privilege. I hope that it will help.

    npm install –g @angular/cli@latest
    

提交回复
热议问题