React setup error can u guys help me to solve | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

React setup error can u guys help me to solve

Starting the development server... events.js:292 throw er; // Unhandled 'error' event ^ Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19) at onErrorNT (internal/child_process.js:468:16) at processTicksAndRejections (internal/process/task_queues.js:84:21) Emitted 'error' event on ChildProcess instance at: at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12) at onErrorNT (internal/child_process.js:468:16) at processTicksAndRejections (internal/process/task_queues.js:84:21) { errno: -4058, code: 'ENOENT', syscall: 'spawn cmd', path: 'cmd', spawnargs: [ '/s', '/c', 'start', '""', '/b', '"http://localhost:3000/"' ] } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: `react-scripts start` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR!

6th Jun 2020, 8:54 AM
Hariprakash
2 Answers
+ 4
I did quick Google and found that apperently a lot of people had this issue. Here's how you fix it. https://stackoverflow.com/questions/60337409/npm-start-issues-with-react-3-4-0 https://github.com/facebook/create-react-app/issues/7061
6th Jun 2020, 8:58 AM
Raj Chhatrala
Raj Chhatrala - avatar
0
npm install [email protected] npm start These two lines save my day. The above problem occurred to me after I deploy react app on GitHub pages and try to test the local app by connecting with Heroku backend.
29th Jun 2020, 4:18 AM
E Vision
E Vision - avatar