skip to Main Content
PS C:UsersAdministratorDesktopReact appReactapp> npx create-react-app .
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:UsersAdministratorAppDataRoamingnpm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:UsersAdministratorAppDataRoamingnpm'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in: C:UsersAdministratorAppDataLocalnpm-cache_logs2023-10-31T20_00_59_399Z-debug-0.log

I have tried a lot but this issue is not getting fixed

2

Answers


  1. Try this erorr-while-installing-npx-create-react-app: it worked for me npm install yarn. Then npm rebuild C:UsersAdministratorAppDataRoamingnpm should help i had the same issue, Best of luck cheers .

    Login or Signup to reply.
  2. Project names on npm are typically lowercase and can also include hyphens and underscores to separate words.
    you can give name like react-app or reactapp.

    project name cannot contain capital letters. This is specific to npm package naming conventions and doesn’t directly relate to React itself.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search