skip to Main Content

npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:UsersHPAppDataRoamingnpm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat ‘C:UsersHPAppDataRoamingnpm’
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:UsersHPAppDataLocalnpm-cache_logs2023-10-04T03_43_30_067Z-debug-0.log
PS D:React> how to resolve this error

i want to full solution to resolve this error

2

Answers


  1. Try running your application from Command Prompt/Terminal.
    This might be a permission issue.

    Login or Signup to reply.
  2. Try running the command as root administrator and use npx

    sudo npx create-react-app my-app
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search