hello i need help in react-app
when i run command npm start for my react app some error occurs.
The output is:
blog@0.1.0 start C:\Users\Buntu\react-test\blog
react-scripts start
i 「wds」: Project is running at http://192.168.43.195/
i 「wds」: webpack output is served from
i 「wds」: Content not from webpack is served from C:\Users\Buntu\react-test\blog\public
i 「wds」: 404s will fallback to /
Starting the development server...
events.js:288
throw er; // Unhandled 'error' event
^
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469: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:273:12)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: 'ENOENT',
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! blog@0.1.0 start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the blog@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Buntu\AppData\Roaming\npm-cache_logs\2020-04-01T06_25_37_728Z-debug.log
can anyone help?
Latest comments (4)
I had the same issue. I'm working on Ubuntu, and adding a "sudo" to the command has fixed it..
Try
sudo npm start
Guys I have the same problem. Can anyone get the solution? please let me know.
I have the same issue. did you find any solution ?
Can you share code or repository (or runnable sample on CodeSandbox or Stackblitz?)
Normally an error occurs when you use older version of
node
.You need
Node >= 8.10 and npm >= 5.6
reactjs.org/docs/create-a-new-reac...