-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
npm start problem in reactjs #8639
Comments
I don't think so. I have the exact same problem running My environment: Windows 10 Starting the development server...
events.js:298
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"' ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. // Edit: just wanted to add that there is no issue on [email protected] on MacOS |
same issue I faced |
I solved the issue using this command in my terminal on Linux. rm -rf node_modules |
I confirm that issue with last version of NodeJS. |
That didn't help, [email protected] [email protected] and I am still having the same issue as before whether I am using yarn or npm |
I finally managed to fix it, thanks to this comment - gatsbyjs/gatsby#1767 (comment) I don't know why but I didn't have C:\Windows\System32 added to my PATH variable. |
Did you installed it with chocolatey? |
This worked for me. Thanks alot been stuck here for hours |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue. |
events.js:287 Error: spawn cmd ENOENT npm ERR! A complete log of this run can be found in: |
I have fixed by adding C:\Windows\System32 to my PATH varible. |
pleas help me how can solve these problem?
i 「wds」: Project is running at http://10.4.91.252/
i 「wds」: webpack output is served from
i 「wds」: Content not from webpack is served from C:\Users\Enat\Desktop\React\my-app\public
i 「wds」: 404s will fallback to /
Starting the development server...
events.js:293
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! [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:....\AppData\Roaming\npm-cache_logs\2020-03-12T11_19_38_702Z-debug.log
The text was updated successfully, but these errors were encountered: