$ npx create-react-app my-app
npm ERR! code ENOENT
npm ERR! syscall spawn C:\MongoDb\mongosh-1.0.1-win32-x64\mongosh-1.0.1-win32-x64\bin
npm ERR! path C:\Arya\web development\react-project-first
npm ERR! errno -4058
npm ERR! enoent spawn C:\MongoDb\mongosh-1.0.1-win32-x64\mongosh-1.0.1-win32-x64\bin ENOENT
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:
npm ERR! C:\Users\yoges\AppData\Local\npm-cache\_logs\2021-08-20T17_12_07_619Z-debug.log
My node and npm versions are up to date. I tried reinstalling npm and tried installing a module to make sure it is working but it's showing the same error.
And in my package.json when I click debug this is what it shows:
Can someone tell me what to do?
Never mind, it started working again. The path of the ComSpec was changed for some reason and also in the environment variables the MongoDB was messing so had to delete that too.