PS C:UsersARPITDesktop> npx create-react-app my-react-app
npm error code ENOENT
npm error syscall spawn C:WINDOWSsystem32cmd.exe
npm error path C:UsersARPITDesktop
npm error errno -4058
npm error enoent spawn C:WINDOWSsystem32cmd.exe ENOENT
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:UsersARPITAppDataLocalnpm-cache_logs2024-07-18T09_45_44_534Z-debug-0.log
I tried to change my environment path, reinstalled Node twice and searched for the solution in YouTube.
New contributor
Arpit Dhuriya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
• Check and update the system PATH to include C:WINDOWSsystem32.
• Ensure cmd.exe is present in C:WINDOWSsystem32.
• Reinstall Node.js to reset PATH settings.
• Try running the command in a different terminal (PowerShell or Windows Terminal).
• Review and reset the npm configuration if necessary.
• Review the detailed log file for more information.
• Update npm to the latest version.
New contributor
Temidayo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.