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
Check if you have
npm
installed on your system by runningAnd install the latest version
Run the below commands in sequential order. Hope it will help you.