I am learning a ReactJs course and while creating FirstReactApp using commands in window-7.
npm install -g create-react-app
npm create-react-app
Both of this code works fine but when i am trying to start the server using npm start then i am getting an error called
ELiFECYLE
Below are the errors i am getting.
C:\my-react-app>npm start
> [email protected] start C:\my-react-app
> react-scripts start
Starting the development server...
events.js:174
throw er; // Unhandled 'error' event
^enter code here
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
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:
