Problem - npm start
See original GitHub issueHello. I have a problem. I have created a project using “npx crate-react-app appname”. This is ok. But, when i enter “npm start”, it shows me this:
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:267:19)
at onErrorNT (internal/child_process.js:467: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:467: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! appname@0.1.0 start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the appname@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\my name\AppData\Roaming\npm-cache_logs\2020-04-18T14_23_16_209Z-debug.log
Issue Analytics
- State:
- Created 3 years ago
- Comments:9
Top GitHub Comments
I had a similar issue with unity a couple of months ago, i solved it adding this line at the end of the PATH enviroment varible.
C:\Windows\System32
example
hope that this works for you.
@mateo500 Hey, forgot to inform, it started working. I think it was some permission issues, I run my command prompt as administrator and then install create-react-app and then create an app and if I run, it runs. But, i’ll even try as you said, just to make sure that I don’t get into trouble in future!
Thanks 😃