facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.81k stars 26.87k forks source link

Error -4048 and Error -4058 and ENOENT, #13630

Open vabhi9 opened 4 months ago

vabhi9 commented 4 months ago

2 days ago all of npm commands running properly but now whenever i'm trying to run npm create vite@latest its shows me error related to mongosh which i installed 2 days ago then i delete mongosh and also delete their environment variables and also reinstall the node js and also add their environment variables in the system but still same error coming again and again. I can't understand if mongosh is not present in the system then why error comes related to mongosh even i'm working on vite. I'm soo Much Frustated if you know the solution then please help me.

arashghezavati commented 4 months ago

Try clearing npm cache using npm cache clean --force, verify Node.js installation, remove any lingering environment variables related to mongosh, reinstall npm packages with npm install, update npm to the latest version with npm install -g npm@latest, run npm audit to check for security issues, and consult npm documentation or forums for further assistance.