+ 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! demo-app@0.1.0 start: `react-scripts start` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the demo-app@0.1.0 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 Antworten
+ 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 react-scripts@2.1.8 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