Error installing create-react-app with npm

前端 未结 3 606
挽巷
挽巷 2021-01-29 02:53

When I try to install create-react-app (or nodemon) globally or even within a project, I get the following error. However, I can install other packages perfectly fine both globa

3条回答
  •  一向
    一向 (楼主)
    2021-01-29 03:50

    I was facing the same issue. Found a solution for the same.

    • Go to C:\Users\%UserName%\AppData\Roaming\npm-cache
    • Delete all items present there
    • Some files inside 1 or more folders you may not be able to delete, then just rename them to some random name.
    • Now retry npm install. It should work

提交回复
热议问题