skip to Main Content

The error show in terminal

D:\Project>npx create-react-app max

npm ERR! code ENOENT

npm ERR! syscall lstat

npm ERR! path C:\Users\preet\AppData\Roaming\npm

npm ERR! errno -4058

npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\preet\AppData\Roaming\npm'

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:\Users\preet\AppData\Local\npm-cache\_logs\2023-07-19T12_38_31_048Z-debug-0.log

Pls give the solution to fix this problem.

2

Answers


  1. Check if you have npm installed on your system by running

    npm --version
    

    And install the latest version

    npm install -g npm@latest
    
    Login or Signup to reply.
  2. Run the below commands in sequential order. Hope it will help you.

    npm install -g create-react-app    
    npx create-react-app max     
    cd max      
    npm start 
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search