Error installing create-react-app with npm

前端 未结 3 607
挽巷
挽巷 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:48

    Run npm cache clean --force and then try installing again

    0 讨论(0)
  • 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
    0 讨论(0)
  • 2021-01-29 03:56

    Did you try to execute the command as administrator?

    0 讨论(0)
提交回复
热议问题