Skip to content

create-react-app get error when first time run #8117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
epuation opened this issue Dec 8, 2019 · 1 comment
Closed

create-react-app get error when first time run #8117

epuation opened this issue Dec 8, 2019 · 1 comment

Comments

@epuation
Copy link

epuation commented Dec 8, 2019

INFO: Gracefully shutting down. Please wait...
PS F:\ReactJS\practical-reach> npm run start

[email protected] start F:\ReactJS\practical-reach
react-scripts start

Starting the development server...

events.js:196
throw er; // Unhandled 'error' event
^

Error: spawn cmd ENOENT
?[90m at Process.ChildProcess._handle.onexit (internal/child_process.js:266:19)?[39m
?[90m at onErrorNT (internal/child_process.js:468:16)?[39m
?[90m at processTicksAndRejections (internal/process/task_queues.js:84:21)?[39m
Emitted 'error' event on ChildProcess instance at:
?[90m at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)?[39m
?[90m at onErrorNT (internal/child_process.js:468:16)?[39m
?[90m at processTicksAndRejections (internal/process/task_queues.js:84:21)?[39m {
errno: ?[33m-4058?[39m,
code: ?[32m'ENOENT'?[39m,
syscall: ?[32m'spawn cmd'?[39m,
path: ?[32m'cmd'?[39m,
spawnargs: [ ?[32m'/s'?[39m, ?[32m'/c'?[39m, ?[32m'start'?[39m, ?[32m'""'?[39m, ?[32m'/b'?[39m, ?[32m'"http://localhost:3000/"'?[39m ]
}
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! A complete log of this run can be found in:
npm ERR! C:\Users\rupen\AppData\Roaming\npm-cache_logs\2019-12-08T20_27_22_195Z-debug.log
PS F:\ReactJS\practical-reach>

@gilbertoayala12
Copy link

Maybe you can take a look at issue #7251
It looks like you need to put cmd in your system path.

@lock lock bot locked and limited conversation to collaborators Jan 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants