Friday, August 2, 2024

ENOENT Error While creating New app in React in command prompt

ENOENT Error While creating New app in React in cmd 

Error:

npm error code ENOENT

npm error syscall lstat

npm error path C:\Users\palak\AppData\Roaming\npm

npm error errno -4058

npm error enoent ENOENT: no such file or directory, lstat 'C:\Users\palak\AppData\Roaming\npm'

npm error enoent This is related to npm not being able to find a file.

npm error enoent

npm error A complete log of this run can be found in: C:\Users\palak\AppData\Local\npm-cache\_logs\2024-08-02T18_31_45_955Z-debug-0.log


>npx create-react-app taskmate 

Note: taskmate is the app-name

Solution:

 Install>npm install -g npm


Now , Its Worked 


App created successfully.


 


Thank you.